NexusFi: Find Your Edge


Home Menu

 





Not sure why Multichart cannot follow my logic on the following coding


Discussion in MultiCharts

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




 
Search this Thread

Not sure why Multichart cannot follow my logic on the following coding

  #1 (permalink)
lewisgthegood
Tuen Mun
 
Posts: 2 since Mar 2021
Thanks Given: 0
Thanks Received: 0

Setting:
- 1 tick bar
- Dot on close bar
- [IOGMode(IOGMode.Enabled)]

Background:
I have a bool "buySignal" variable, long order will be sent if
1.buySignal is true and
2. -0.03 < percentage change is < 0.03 and
3.Bars.Close[0] != Bars.Close[1]

I have used "Output.WriteLine" to debug and try to see when these conditions become "true". However, I found out that even if all the above mentioned conditions are all "true", long order still did not send. I am so confused and not sure if it is my logical error or Multichart's system limitation.

I have attached the result ran on the Multichart and my codings.

****************
Question:
Why the first long order sent at 10:14? I think the first Bar.close[0]<Bar.close[1] already happened at around 9:33: (the dot lower than the previous dot) and all other conditions are already met, why long order did not send at that moment?

And I noticed that there are lot times that Bar.close[0]<Bar.close[1] and all other conditions are met, long order still did not send out.

Please advice it is my logical error, or system limitation?

Attached Thumbnails
Click image for larger version

Name:	Bars.JPG
Views:	152
Size:	101.6 KB
ID:	310426  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
 SEGroup 
Kalamazoo MI
 
Experience: Advanced
Platform: MultiCharts
Trading: Futures
Posts: 11 since Feb 2013
Thanks Given: 0
Thanks Received: 6

I do not have sufficient information, nor your exact coding to debug your issue, however, some consideration you might need to address are:
  • Check the Order and Position Tracker Window for a possible reason why the order was not sent.
  • Are you sure that the order was not sent, or just not filled?
  • Also, expecting to get a fill on a one tick bar is way over optimistic. In MultiCharts, orders are only active for the current bar, and are only renewed if the conditions that caused the original triggering of an order are still true on subsequent bars.
  • A single order in the market has the potential of generating many, multiple one tick bars, all with the same timestamp.
  • Building one tick strategies, where trades only last for a one tick bar or two, will generally not work very well, if at all, given all of the idiosyncrasies of the market (fills, slippage, etc.).

Good luck with your strategy.

Reply With Quote




Last Updated on March 14, 2021


© 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