Quick and Easy Script - with user inputs

MQL4 Skripte

Spezifikation

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? 

Bewerbungen

1
Entwickler 1
Bewertung
(190)
Projekte
233
56%
Schlichtung
13
15% / 54%
Frist nicht eingehalten
43
18%
Frei
2
Entwickler 2
Bewertung
(328)
Projekte
538
66%
Schlichtung
53
21% / 40%
Frist nicht eingehalten
169
31%
Frei
Veröffentlicht: 1 Beispiel
3
Entwickler 3
Bewertung
(106)
Projekte
314
49%
Schlichtung
42
52% / 19%
Frist nicht eingehalten
22
7%
Frei
4
Entwickler 4
Bewertung
(64)
Projekte
144
46%
Schlichtung
19
42% / 16%
Frist nicht eingehalten
32
22%
Frei

Projektdetails

Budget
10 USD
Ausführungsfristen
von 1 bis 2 Tag(e)