I am trying to submit a conditional order that buys when the price is close to 9EMA on the 5m chart.
Code I am using within the Condition setup is:
def MA = MovAvgExponential(close,9,0,no);
def price=low;
def tol =absValue(low-MA)/MA;
plot x=tol<0.001;
I place the order and I always get an error "Order position effect could not be safely calculated...."
I tried using shares and dollars for amounts. Limit/Market for order type. Same error.
Would greatly appreciate any help.
Code I am using within the Condition setup is:
def MA = MovAvgExponential(close,9,0,no);
def price=low;
def tol =absValue(low-MA)/MA;
plot x=tol<0.001;
I place the order and I always get an error "Order position effect could not be safely calculated...."
I tried using shares and dollars for amounts. Limit/Market for order type. Same error.
Would greatly appreciate any help.