Hi expert coders,
I am in need of two scripts. One for placing pending buy and one for placing pending sell order.
The pending buy would be the close price of the previous bar ( I am using H1 time frame to trade ) So the buy order would be close of the previous closed candle. Stop loss would be the low of the closed candle. No take profit.
Similarly for the sell order, the close of the previous closed H1 candle would be price and high of the closed candle would be the stop loss.No take profit.
NOTE: THE PENDING BUY / SELL ORDER WOULD BE PLACED AT THE CLOSE OF THE PREVIOUS CANDLE AND NOT THE HIGH OR LOW OF THE CANDLE. THE STOP LOSS WOULD BE THE LOW OF THE CANDLE IN CASE OF BUY AND WOULD BE THE HIGH OF THE CANDLE IN CASE OF SELL ORDER.
I searched extensively on many forums but could not find any that suits my requirements. Could you experts please be kind to code these scripts or guide me to the link where such a script already exists.
Thanks in Advance
Warm Regards to all
I am in need of two scripts. One for placing pending buy and one for placing pending sell order.
The pending buy would be the close price of the previous bar ( I am using H1 time frame to trade ) So the buy order would be close of the previous closed candle. Stop loss would be the low of the closed candle. No take profit.
Similarly for the sell order, the close of the previous closed H1 candle would be price and high of the closed candle would be the stop loss.No take profit.
NOTE: THE PENDING BUY / SELL ORDER WOULD BE PLACED AT THE CLOSE OF THE PREVIOUS CANDLE AND NOT THE HIGH OR LOW OF THE CANDLE. THE STOP LOSS WOULD BE THE LOW OF THE CANDLE IN CASE OF BUY AND WOULD BE THE HIGH OF THE CANDLE IN CASE OF SELL ORDER.
I searched extensively on many forums but could not find any that suits my requirements. Could you experts please be kind to code these scripts or guide me to the link where such a script already exists.
Thanks in Advance
Warm Regards to all