NexusFi: Find Your Edge


Home Menu

 





How can it buy at a price that has not been touched: possible Multichart bug?


Discussion in MultiCharts

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




 
Search this Thread

How can it buy at a price that has not been touched: possible Multichart bug?

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

Hello everyone,

just a curiosity. How can a situation like this in the picture happen? (it's a backtest)
Is there a piece of code that fire a simple buy order at market.. but How can it buy the DAX at a 5 point higher than the HIGH value of that bar????



Just for reference this is the piece of code related to the entry:

DisplAVG is the with line (just a displaced average 3x3 )
and SD1Down is the first deviation standard below the vwap.
150 contract bar chart on DAX futures...

 
Code
if H[2] < DispAVG and H[1] < DispAVG and C > DispAVG and C > SD1Down and
	   C - SD1Down <= minPTS			
 		then begin
 			buy (" LE 3") 1 contract next bar at market;
			EntryMode = 3;
		   	canPrintEntryprice = true;
		end;
Am I missing something?

BTW: I'm using MultiCharts64 Version 11.0 Release (Build 15647)

Reply With Quote




Last Updated on November 23, 2018


© 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