Hi there community, I've got a doubt on this lines.
Once the condition becomes true (Positive>0), the GlobalTarget used to get the TakeProfit value would be the first one (above) or the last one (below)?
you will find things easier to understand if you lay your code out better..
once the IF statement becomes true then the code between the { } will execute and change the values accordingly
double GlobalTarget=(((Positive+PositionsTotal())/2)*Equity)/100; double TakeProfit=GlobalTarget; if(Positive>0) { TakeProfit=NormalizeDouble(GlobalTarget/Positive,2); GlobalTarget=GlobalTarget/(PositionsTotal()/Positive); }
Hi there community, I've got a doubt on this lines.
Once the condition becomes true (Positive>0), the GlobalTarget used to get the TakeProfit value would be the first one (above) or the last one (below)?