I am trying to get the chart background to change colour if the previous bars force index crosses 0
have tried many variations sometimes work sometime not
Jamie
have tried many variations sometimes work sometime not
Jamie
if (XA2 < 0 && XA2_1 > 0)
onAction1();
else if (XA2 > 0 && XA2_1 < 0)
onAction2();
else
onAction3();
if)getBarState()==BARSTATE_NEWBAR){
XA2_3 = XA2_2;
XA2_2 = XA2_1;
XA2_1 = XA2;
}
Comment