Command button on and indicator code

 

Hi,

Is it possible to have a command button on an indicator to execute some code for close all open orders?

Thanks

 
Maringa Chandima Gunarathna:

Hi,

Is it possible to have a command button on an indicator to execute some code for close all open orders?

Thanks

There are beginner tutorials on YouTube on how to do a close all and how to create a buy button. Then you will have to make it so the Button triggers the close all. Or search in codebase. Both is good exercise.
 
Maringa Chandima Gunarathna: Is it possible to have a command button on an indicator to execute some code for close all open orders?
Szymon Palczynski #:                 Yes

No!. Indicators can not trade.

Reason: