Quick and Easy Script - with user inputs

MQL4 Script

Specifiche

Hi i know this will be quick and easy for some people.

I need a script that does tthe following:

User Inputs:
Pair = user can input pairs , separated by "/" or a separator of your choosing
TimeFrame = WEEKLY
Breakout %
Stop Loss %
Account Risk per Trade (based on SL)

very simply,

For each PAIR in the PAIR range (user input)
Take Previous Week Candle (Candle[1]) High and Low Range
Place Buy Stop at Current Price + Breakout%(user input) x Candle[1] High Low Range, with SL of Stoploss%(user input) x Candle[1] High Low Range
Place Sell Stop at Current Price -  Breakout%(user input) x Candle[1] High Low Range, with SL of Stoploss%(user input) x Candle[1] High Low Range

Order Size will be based off Account Size and the risk per trade (user input) 

thats it...   

 for example
if GBPUSD was in the pair range

GBPUSD Weekly Candle [1] (previous candle) High Low Range is 200 pips
Breakout %(user input) is 30%
Stop Loss %(user input) is 20%
Account Risk % is 1%, assume current account size is $5000

then

Buystop will be CurrentPrice + 0.30x200, with a StopLoss of 0.20x200
Sellstop will be CurrentPrice - 0.30x200, with a StopLoss of 0.20x200

Order Size will be 1% of $5000 = $50 = the StopLoss (0.20x200) = 40 pips

easy? 

Con risposta

1
Sviluppatore 1
Valutazioni
(190)
Progetti
233
56%
Arbitraggio
13
15% / 54%
In ritardo
43
18%
Gratuito
2
Sviluppatore 2
Valutazioni
(328)
Progetti
538
66%
Arbitraggio
53
21% / 40%
In ritardo
169
31%
Gratuito
Pubblicati: 1 codice
3
Sviluppatore 3
Valutazioni
(106)
Progetti
314
49%
Arbitraggio
42
52% / 19%
In ritardo
22
7%
Gratuito
4
Sviluppatore 4
Valutazioni
(64)
Progetti
144
46%
Arbitraggio
19
42% / 16%
In ritardo
32
22%
Gratuito

Informazioni sul progetto

Budget
10 USD
Scadenze
da 1 a 2 giorno(i)