2 Answers
<p>It's hard coded to 1 lot at 5 pips profit and 20 stoploss. Just open it up with the editor and make the changes to suit you. If you use 5 digit broker 5 pips is then 50 and 20 is 200.</p><p>Just another tip as speed is of essence make yourself a hotkey for buy and one for sell you will be lot quicker to collect those pips</p><p>File Type: <a href="https://www.forexfactory.com/attachment/file/410464?d=1265375518">mq4 Buy.mq4</a></p><p>File Type: <a href="https://www.forexfactory.com/attachment/file/410465?d=1265375518">mq4 Sell.mq4 </a> </p>
2 Views
<p>You can make a script for buy/sell orders, but how you do it depends on the platform (TradingView, MT4/MT5, ThinkorSwim, NinjaTrader, etc.).</p><p id="isPasted">For TradingView (Pine Script) – Example Buy/Sell Script</p><p>This script enters long when price is above a moving average and sells when it goes below.</p><p><strong>Pine Script v5 Example</strong></p><p id="isPasted">//@version=5</p><p>strategy("Simple Buy/Sell Script", overlay=true, initial_capital=10000)</p><p>length = input.int(50, "Moving Average Length")</p><p>ma = ta.sma(close, length)</p><p>plot(ma, "MA", color=color.yellow)</p><p>// Buy when close crosses above MA</p><p>if (ta.crossover(close, ma))</p><p> strategy.entry("Buy", strategy.long)</p><p>// Sell when close crosses below MA</p><p>if (ta.crossunder(close, ma))</p><p> strategy.close("Buy")</p><p><br></p><p>This script automatically …</p>