Code: Select all
[ProcessMouseEvents = true];
[IntrabarOrderGeneration = true];
var: LEntryLevel(3170),SEntryLevel(3220);
// LMT Buy order with a mouse click with Shift
if MouseClickShiftPressed then Buy ("LevelK1") 1 contract next bar LEntryLevel limit;
// LMT Sell order with a mouse click with Ctrl
if MouseClickCtrlPressed then Sell short ("LevelS1") 1 contract next bar SEntryLevel limit;