|
Taiwan
Experience: Intermediate
Platform: MC
Posts: 77 since Jun 2010
Thanks Given: 8
Thanks Received: 17
|
running on a 1 min chart, I am trying to achieve 3 things
1) position gets stop out at the entry point
2) 6 minute after the initial entry is taken, if the position profit > $100, buy 2 additional contract at the close,
3) mkt close at 1615, all positions are closed at 1613 (exitlong doesn't work anymore) what is the new reserved word for exitlong or close out whatever position left because sometimes the no. of contract is an unknown number?
For some reason, 2) is not working.
Please help.
if barssinceentry > 1 and positionprofit <= 0 then sell ("Stop") this bar at close;
if barssinceentry =6 and positionprofit >100 then buy ("add 2") 2 contract this bar at close;
if time > 1613 and marketposition = 1 then sell ("Mkt Closed") this bar at close;

|