complete noob. how do i place a buy stop at a specific time
Created at 29 Jan 2020, 15:29
$1
complete noob. how do i place a buy stop at a specific time
29 Jan 2020, 15:29
I wish to place buy and sell stop at a specific time (date hh:mm:ss) and a specific pip distance from whatever the current market price is.
So example the current time could be 13.05;
but i want to set buy+stop entry order on spx
x pips away from the cmp
at 14.30
does anyone know if this is possible to code?
Replies
$11119040.96
04 Feb 2020, 15:52
RE:
thanks bbb!
Fancy compiling some more lines for me?!
Will send you a tip via paypal!!
@$11119040.96
bishbashbosh
29 Jan 2020, 20:17
You can create a cBot and then override the OnBar method and then within that check if MarketSeries.OpenTime.LastValue is the time you want; if it is, submit your order.
@bishbashbosh