@Eshhh when is it freezing? any particular times / after certain functions? I just ran it and it was placing trades okay, but perhaps it is happening after a certain function. Thanks!
@Eshhh
if SMA14==SMA26, both if and elseif statements will fail. then the whole thing will crash
add else statement for example if sma14==sma26, x =random(1,2)
if(x=even TREND UP, if odd TREND DOWN)
it will be rare that SMA14==SMA26 so just taking random trade will not happen too often
hower when it happens that they are the same and you have no else statement, then you will be screwed. Good luck
Hey @ceakuk , Thanks for your reply. I have added the codes as you said as shown below, but the bot still freezes. Ive included even the condition "If sma6==sma14" in block2, but still no change. Have i done it correctly? I think the bot stops when the smas crossover. Please advice thanks.
@wilburforce83 thanks for your reply, the bot stops just randomly, no particular time, i think it stop when the smas crossover.


@Eshhh I would just go back to your original code and change one of the === to <= or >= it's not ideal but it is a limitation of the blockly system. I think I gave up in the end with this particular problem and made 2 XML files:
Call XML
Put XML
And ran them side by side.
@wilburforce83 i got around the problem by introducing NOTOUCH to the original code like shown below, but its not the original strategy and it could hurt the money management, still testing.

did fixed it?
Most helpful comment
@Eshhh
if SMA14==SMA26, both if and elseif statements will fail. then the whole thing will crash
add else statement for example if sma14==sma26, x =random(1,2)
if(x=even TREND UP, if odd TREND DOWN)
it will be rare that SMA14==SMA26 so just taking random trade will not happen too often
hower when it happens that they are the same and you have no else statement, then you will be screwed. Good luck