Quick and Easy Script - with user inputs

MQL4 Sripts

Tarea técnica

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? 

Han respondido

1
Desarrollador 1
Evaluación
(189)
Proyectos
232
56%
Arbitraje
12
17% / 50%
Caducado
43
19%
Libre
2
Desarrollador 2
Evaluación
(320)
Proyectos
525
66%
Arbitraje
52
21% / 38%
Caducado
169
32%
Libre
3
Desarrollador 3
Evaluación
(106)
Proyectos
314
49%
Arbitraje
42
52% / 19%
Caducado
22
7%
Libre
4
Desarrollador 4
Evaluación
(62)
Proyectos
140
46%
Arbitraje
19
42% / 16%
Caducado
32
23%
Libre
Solicitudes similares
I want to pull a fib, with set entry price at a certain percentage, with stopploss set at another percentage of the fib. Risk is set in USD. Risk to match stop loss level. TP is set as ratio to stop loss. Calculate no. of contracts. A hot key for buy and one for sell. Illustration: In settings Inputs: Fib% to be displayed Entry level fib% stop loss fib percentage TP ratio Risk in USD or account percentage Operation
FUNCTION 1 When I set max open orders to one it won't close the order. Changed should work as following When max open order is True and set to one it should still be able to close the open order. Finish today within next hour //+------------------------------------------------------------------+ //| Function to count orders | //+------------------------------------------------------------------+
I need help with creating a website traders chatroom, it must show traders online,offline,inactive. the chatroom top section must show four clocks with different times and time scale like this.. the chatroom must have a history data of up to 10days, then longer history must be deleted automatically. if you have better chatroom please say your recommendations
I have a python script that connects MT5 to Deriv for binary trading which is having some bug. It stops executing trades after a while. I need someone to check the code and fix it. Negotiable price

Información sobre el proyecto

Presupuesto
10 USD
Para el ejecutor
9 - 9 USD
Plazo límite de ejecución
de 1 a 2 día(s)