NexusFi: Find Your Edge

Home Menu


Problem with time conditions and orders

Discussion in EasyLanguage Programming

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

Search this Thread

Problem with time conditions and orders

  #1 (permalink)
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:

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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
How to apply profiles
Traders Hideout
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
MC PL editor upgrade
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
22 thanks
GFIs1 1 DAX trade per day journal
17 thanks

Last Updated on March 16, 2016

© 2024 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 - Privacy Policy - Downloads - Top
no new posts