Close all at specified level?

Post Reply
Spectre
Trader
Posts: 39
Joined: Mon Nov 05, 2012 6:18 am
Location: Norway, the most taxed place on earth(maybe)

Close all at specified level?

Post by Spectre »

Hello

How would you code this? I am looking to close all orders at a specified level. No matter how many orders are between the first price and close price, all should close at same price.

Example:
open initial order at price A,
set Close All at initial order price plus 50 pips (B) either way or both sides
Close All price plus minus x pips, Level B

Restart after order close
" I'm not an alcoholic, i'm australian " - Lance
Post Reply

Return to “Coders Hangout”