Hi everyone I have a very simple TS2000i easylanguage program in 2 versions, the first works, the second, which I need to use to build upon, doesn't work. Can someone please help me.
The second version only sells 50 shares and does nothing more.
Version one. works perfectly
If currentbar =1 then buy 100 shares this bar at close;
if currentbar=4 then exitlong 50 shares this bar at close;
if currentbar=5 then exitlong 50 shares this bar at close;
Version 2 ob Only exits 50 shares.
If current bar =1 then buy 100 shares this bar at close;
if currentbar =4 or Currentbar=5 then exitlong 50 shares this bar at close;
I tried many versions, including using the word Total, giving the buy command a name, etc. It seems to ignore the Exitlong command second time around. I need Exitlong to be in a in a loop for the agorithm I want to try.
Please help
The second version only sells 50 shares and does nothing more.
Version one. works perfectly
If currentbar =1 then buy 100 shares this bar at close;
if currentbar=4 then exitlong 50 shares this bar at close;
if currentbar=5 then exitlong 50 shares this bar at close;
Version 2 ob Only exits 50 shares.
If current bar =1 then buy 100 shares this bar at close;
if currentbar =4 or Currentbar=5 then exitlong 50 shares this bar at close;
I tried many versions, including using the word Total, giving the buy command a name, etc. It seems to ignore the Exitlong command second time around. I need Exitlong to be in a in a loop for the agorithm I want to try.
Please help
Last edited: