NexusFi: Find Your Edge


Home Menu

 





Problem with time conditions and orders


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,557 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)
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?
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
 




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