Need help with timed based accounting for non-Forex robot ...

Back to topics list To post a new topic, please log in or register
avatar
2
sssolepro 2016.07.26 06:20
 

Hi guys, I am having the hardest time getting my indicator to update the result info for a trade that was placed on a previous bar.

Can anyone offer a solution or maybe point me in the right direction. It would greatly be appreciated. Many thanks!!! 

Here is a the code snippet:

if(
(Condition &&AutoTrades<1
)
)
{
if(DisplayMoneyManager>0)
{
AutoTrades+=1;
if(Bar0<Time[Candle+Trade])
{
//Trade placed once on bar zero...
OptionsAutoTraderPut();
Bar0=Time[Candle+Trade];
}
AutoTrades=0;
if(Bar0<Time[Candle+2])
{
CrossDown[Candle]=TargetH-Spacing*Point;
//If a trade was placed at 12:08:05, I am needing to get the result of that trade back after and within 12:10 *round 2min* 
//Results to be printed... 
BearWins();
Bar0=Time[Candle+Trade];
}
}
}
***Note: Each of the arguments work when used separately. I am having a problem getting them to work together.

 

avatar
12985
WHRoeder 2016.07.26 18:45 #
 
sssolepro: I am having the hardest time getting my indicator to update the result info for a trade that was placed on a previous bar.
Makes no sense. Indicators update every bar.

Back to topics list  

To add comments, please log in or register