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?
Thanks Mike. Godspeed.
The Elite Circle
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
Kalshi Rockets to $22B, Passes Polymarket in Volume -- B …
Prediction Markets & Event Contracts
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
 
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