Replies

kanapon
30 May 2019, 22:31

Hi Panagiotis

Thank you very much for support.

i try to check your adjustment and found that 

Old
if (CountOfTradesOfType(TradeType.Buy) > 0) 
New
if (CountOfTradesOfType(TradeType.Buy) > 0 && Buy)

Old
if (CountOfTradesOfType(TradeType.Sell) > 0)
New
if (CountOfTradesOfType(TradeType.Sell) > 0 && Buy)

 

the second sentence i guess it should be as below, am i correct?

if (CountOfTradesOfType(TradeType.Sell) > 0 && Sell) 

 

anyway i test a bit on live account and it is what i want. Thank you very much.


@kanapon

kanapon
29 May 2019, 11:45

RE:

Panagiotis Charalampous said:

Hi kanapon,

Thanks for posting in our forum. It seems that this parameter affects only the placement of the first order. If there are positions opened, then it is ignored.

Best Regards,

Panagiotis

 

Thank you for this investigation, is it possible use it to control buy sell even position remain?


@kanapon