Quote:
|
Originally Posted by jdun
What do I need to do to reverse the code from sell to buy and from buy to sell?
|
jdun,
The easiest way to reverse the code (sell to buy & buy to sell) is changing:
Code:
if(signal0 < signal1 ) GlobalVariableSet("TM0",1);
if(signal0 > signal1) GlobalVariableSet("TM0",0);
To:
Code:
if(signal0 > signal1 ) GlobalVariableSet("TM0",1);
if(signal0 < signal1) GlobalVariableSet("TM0",0);