Question about keeping order alive in Easylanguage | Traders Hideout - futures trading strategies, market news, trading charts and platforms

Traders Hideout

Discuss day trading practices and futures trading strategies on this forum for all markets. This forum is also for discussing and reviews for brokers, data feeds, and commercial or third party add-ons


Question about keeping order alive in Easylanguage

  #3 (permalink)

Legendary Market Wizard
Houston, TX
Trading Experience: Advanced
Platform: XTrader
Broker/Data: Advantage Futures
Favorite Futures: Energy
Posts: 2,968 since Dec 2013
Thanks: 2,410 given, 5,314 received

There are people much better than me at easylanguage here, but let me make an attempt.

Easylanguage code runs at the end of each bar, and orders are sent for the next bar. So in your case it's evaluating bar 1 and sending the order on bar 2. In order for the order to still be active on bar 3, there would have to be something on bar 2 as well.

If you did something like
If {trade criteria is met} then myworkorderflag = true;
If myworkorderflag = true then buy next bar at {price} limit;

this will continue working the order as long as myworkorderflag = true and not just for the one bar following the bar that {trade criteria is met}

Reply With Quote