Forum

Help scripting a buy order below current price

Hi! I'm trying to make my own script and I'm stuck with opening a buy order with the price below current price Here's what I'm thinking can anyone shed a light on it? { trade.Buy(Lots,NULL, A sk-100 ,SL,TP,"Buy Condition"); } is this supposed to open a buy order 100 pips below current price

How to create a simple order everytime a stock drops X amount

Hi! I'm trying to create a custom script that buys a stock if the price falls by an amount, can someone help me? Thanks in advance

Need help setting automated SL and TP

Hello everyone ! I'm setting up an script using the following code to make a buy on market price: trade.Buy(lote,_Symbol,0,0,0,"buy"); I'd like to set this action with an automated SL and TP line, aprox. 100 points above and below the buying point. something like this