NexusFi: Find Your Edge


Home Menu

 





Problem with time conditions and orders


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,559 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?
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
Strategy stop orders partially filled
EasyLanguage Programming
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
15 thanks
GFIs1 1 DAX trade per day journal
15 thanks
EG Indicators
11 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