OrderType()

 
hi, the OrderType function is a standard trading function. Can I apply the function in a custom indicator ? I would like to draw a line only if the trading is on...
 

OrderType refers to the selected order. You can call OrderSelect function, but you cannot call trading functions.

Reason: