London + UK
Posts: 8 since Aug 2013
Thanks Given: 1
Thanks Received: 2
|
trying to create a simple strategy in latest TS version ...
inputs: AutoExit(true);
If AutoExit and LastBarOnChart and BarStatus(1) = 2 then begin
Value1 = RunCommandOnLastBar( ".CancelAllOrders" );
Value2 = RunCommandOnLastBar( ".CloseAllPositions" );
end;
have enabled strategy automation & unlocked macros but nothing happens?
(also Alert("msg") won't in a strategy but does work in PaintBar)
can anyone help?
|