I'm testing it out on HSI futures (so no decimals on the price). However, no orders get generated with my code and I'm not too sure where the error is. I used the print line to see that all the variables seem to be what I was expecting. My guess is either my order entry lines of code is incorrect or I'm doing something that's not allowed.
Any help would be appreciated, thanks in advance!
Code: Select all
[IntrabarOrderGeneration = false]
[ProcessMouseEvents = true]
if MouseClickCtrlPressed = true
and MouseClickShiftPressed = false then
begin
if MouseClickPrice > Close then
Buy ( "MCLongStop" ) 1 contract next bar at Round(MouseClickPrice,0) stop;
if MouseClickPrice <= Close then
Buy ( "MCLongLimit" ) 1 contract next bar at Round(MouseClickPrice,0) limit;
end;
print(MouseClickCtrlPressed, " ", MouseClickShiftPressed, " ", MouseClickPrice, " ", Round(MouseClickPrice,0), " ", Close);