NexusFi: Find Your Edge


Home Menu

 





Problem with time conditions and orders


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,911 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
kristian
Zurich
 
Posts: 8 since Aug 2015
Thanks Given: 4
Thanks Received: 3

I experienced a weird behavior in MC lately, my live strategy opened a position while my backtest did NOT (see picture for more info). The strategy is a channel breakout strategy with a time filter.



The time condition is as following:

 
Code
Condition11 = ((Time > 100) and (Time < 2200));
What I don't understand is why the live strategy opened a position, as MC support told me the strategy is calculated at the end of the bar. That should be 22:59 in this case, so the time condition should NOT be met and no order should be created.

If I remove the time condition from the strategy, the backtest also takes the trade (as shown in the 2nd picture). So the problem must be the time condition.




But what am I doing wrong?


Thanks for your help!


P.S. Intrabar order generation is turned off!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
Four New E-mini Futures Launch June 29 -- Russell 3000, …
Emini and Emicro Index
Ceasefire Collapse: Iran Fires 24 Missiles, Israel Hits …
Traders Hideout
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
197 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
BERN ALGOS algo trading journal
8 thanks




Last Updated on March 16, 2016


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts