NexusFi: Find Your Edge


Home Menu

 





Buy at LOW and Sell on HIGH of a candle, is this a BUG? How's possible?


Discussion in MultiCharts

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




 
Search this Thread

Buy at LOW and Sell on HIGH of a candle, is this a BUG? How's possible?

  #1 (permalink)
Dvdkite
Trieste Italy
 
Posts: 162 since Feb 2018
Thanks Given: 131
Thanks Received: 25

Hello everyone,

I have a verysimple strategy that work of 30 minutes chart that use the supertrend and it sellshort just 1 tick BELOW a roof of the ST or BUY 1 tick ABOVE the floor of a ST.
So there's nothing particular in my code that is like:

 
Code
sellshort(NumToStr(barinterval,0) + "m Short") 1 contract next bar at IntPortion(st[2] ) - 1 + EntryOffset limit;

// and for buy


buy(NumToStr(barinterval,0) + "m Long") 1 contract next bar at IntPortion(st[2] ) + 1 - EntryOffset limit;
EntryOffset is ZERO.
So As you can see it simply buy and sell at just one tick from the floor/roof of the super trend ... I'm using the Super Trend Value of 2 bars ago just to be sure that it is the correct value and I'm not in the mibble of a change of trend.

Anyway... the backtest of the last months is showing ONLY perfect entries at the correct prices. But looking back more than a month I can see strange entries as you can see in the image below. It enter long at the LOWEST price of the candle and that's impossible and it is also not the limit order showed above that in real market would be triggered for sure before reach the extreme of the tail of a caldle.... So supposing that it's not magic... is that a BUG?? How could you explane that?

[attachment=1]
[/attachment]

Please note... in the last month all entries are perfect... in the past there are a lot of strange cases like this.

Please share your thoughts.

Thanks,

David

PS: Just for reference those are an example of 3 perfect entries of the strategy


[attachment=0]
[/attachment]

Reply With Quote




Last Updated on February 3, 2020


© 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