vancouver canada
Experience: Intermediate
Platform: multicharts, ninjatrader
Trading: forex
Posts: 53 since Jul 2012
Thanks Given: 14
Thanks Received: 6
|
I was looking at using the midpoint for execution rather than market orders however I'm having trouble getting the code to work.
I read through this thread...
https://nexusfi.com/easylanguage-programming/12991-easylanguage-mulitcharts-limit-orders-2.html
...and liked the following idea:
inputs: pricegap(.01);
If (entry criteria) then buy next bar at currentask + pricegap;
If (entry criteria) then sellshort next bar at currentbid - pricegap;
However, this code doesn't work for me. It seems to indicate that it needs "limit" in there somewhere - can anyone guess why this doesn't work or how i would get it to work?
I was also looking at doing something using ticksize as well, however, same issue it would appear...
variable
ticksize(0);
ticksize = (minmove/PriceScale);
Buy ( "buysignal" ) next bar at currentask - ticksize;
likely the same issue with this code
"syntax error, expecting 'stop', 'limit', 'contracts', or 'shares'
errLine 62, errColumn 46, errLineEnd 62, errColumnEnd 46"
Also - I don't really want to specify # contracts because that is specified in the strategy setup, correct?
|