Stop and reverse + grids MT5 - Need Pine knowledge

Job finished

Execution time 12 days
Feedback from employee
very good and polite customer. with clear request and understanding.
Feedback from customer
The best developer coder for MT5 ! He is smart and fast in execution and helped me every time I ask something. I recomand him is the best!

Specification


The strategy :


Stop and reverse MT5 :


We will use a set of indicators which are independently configurable and can be used on separate timeframes than the EA timeframe.

Ea should have a “round” Money management

Ea should work on 2-3-4-5 digits broker for unusual tickers

Ea should work on generated charts alongside broker charts

Ea should print status in MT5 window – info to print below


The strategy consists in a simple entry triggered on indicator conditions and a step system which resets after a trade round has finished.


Once entry is triggered EA will follow trade in two ways:

Monitor indicators for a complete close.

Monitor trade for grid like additional entries to be added if the option is enabled.


MM = Money management


Trade round logic:


1 : Ea stores Account Balance

2 : Ea waits for entry trigger , Long or Short , first entry will be with MM round 0

3 : After Entry trigger Ea will monitor indicators for close

4 : After close EA will check new Acc. Balance

  • If Balance is higher than stored balance – Trading round finished , Go to 1

  • If Balance is lower than stored balance Continue to 5



5: After close EA waits again for Long Short trigger

6: At trigger EA will enter trade with last MM + 1 step

7: After Entry EA will monitor indicators for close

8 : After close EA will check new Acc. Balance

  • If Balance is higher than stored balance – Trading round finished , Go to 1

  • If Balance is lower than stored balance , continue , Go to 5


Round will continue until balance is higher than stored balance , until then MM step will be recorded and added at each close as in step 6.


This Round logic will control the money management of each trade.


MM step is the last stored MM + one MM




Grids:


Gride type trading must be select-able as an option. If option is disabled EA will work with a single ticket only. 

Grids will follow a D'Alenbert formula or a LINIAR formula for LOT increase on each order. 

Example for D'Alanbert: If MM starts at 0.04 Lot the next Grid lot will be 0.08 , next one will be 0.12 and so on. This must follow the MM+ step given by the “Round Logic” start Lot and work from there as D'Alanbert.

Liniar is simple – use same Lot size as last ticket lot size. 


Options for grids :

Drop down Selection : Enable / Disable 

Drop down Selection - Formula : Liniar / D'alanbert 

Drop Down selection : Static / Dynamic / Price-Distance

Float : Minimum price distance in % 


The grid function should be able to place grids with the following options :


-Static:

Will place a new order at a price and/or % distance from last order ( configurable )


-Dynamic :

Will place a new order at a price and/or % distance from last order ONLY if  indicators allow it.



-Dynamic + Price-Distance Calculation ADD:


Same as Dynamic but will calculate number of tickets based on first entry price to current price distance. The formula should look similar to this:

Tickets_Allow = ( ( Current Price - First Grid Entry ) - ( Distance in $ for tickets * Number of tickets) ) / Distance in $ for tickets

The Ea will have permission to place as many tickets at a given price as this formula allows it on a price to ticket range calculation given indicators and/or Weight Points allow it.

An extra option is needed here: Time to wait before opening the next order to protect account from slow brokers.


As an example : If the price jumps 3% in one direction but EA could not place grid orders because indicators where not aligned , once indicators aligns in the correct side the Price distance formula will calculate how many tickets where possibly open in  this grid and how many there actually are open. Let's say we have 4 tickets open but on a price movement of 3% we could have 11 total open according to minimum price-distance for next ticket. 

At that point the EA will open 7 tickets at the same level. 






Indicators:


Wanted indicators : SAR, MACD, STOCH-RSI, STOCH, RSI, EMA and Volatility Stop ( costume indicator , PINE code provided by me ) 


Each indicator should be usable on different timeframe than EA timeframe.


In addition to each indicators default settings EA must have a disable function to disregard indicator individually and will work with the remaining indicators.

The options for each indicator are the default option in addition to the ones below: 



Indicator EMA/SAR: settings

-Timeframe : select from drop down

if EMA /SAR> Price then Indicator flags to SHORT

EMA/SAR< Price then Indicator flags to LONG





Indicator RSI Settings:

Timeframe : select from drop down

Short Zone : RSI > 70 ( float input)  

Long Zone : RSI < 30 ( float input) 

if  RSI> ShortZone then Indicator flags to SHORT

If RSI< ShortZone then Indicator flags to LONG

If no criteria met indicator flags to NEUTRAL 



Indicators STOCH-RSI / STOCH settings :

Timeframe : select from drop down

Short Zone : Stoch/SRSI > 70 ( float input ) 

Long Zone : Stoch/SRSI  < 30 ( float input) 

if  Stoch/SRSI> ShortZone then Indicator flags to SHORT

If Stoch/SRSI< ShortZone then Indicator flags to LONG

If no criteria met indicator flags to NEUTRAL 





Indicator Volatility Stop: ( this is an imported script from tradingview and needs to be coded as mt5 indicator – code is found below ) 


if Indi < Price then Indicator flags to LONG

if Indi > Price then Indicator flags to SHORT



Volatility stop code :


“”” 

//@version=2

strategy("BitCross strategy v1.0", overlay=true)


trenddecider = input(2)

trend = ema(low,trenddecider)

length = input(20)

mult = input(1)

atr_ = atr(length)

max1 = max(nz(max_[1]), close)

min1 = min(nz(min_[1]), close)

is_uptrend_prev = nz(is_uptrend[1], true)

stop = is_uptrend_prev ? max1 - mult * atr_ : min1 + mult * atr_

vstop_prev = nz(vstop[1])

vstop1 = is_uptrend_prev ? max(vstop_prev, stop) : min(vstop_prev, stop)

is_uptrend = close - vstop1 >= 0

is_trend_changed = is_uptrend != is_uptrend_prev

max_ = is_trend_changed ? close : max1

min_ = is_trend_changed ? close : min1

vstop = is_trend_changed ? is_uptrend ? max_ - mult * atr_ : min_ + mult * atr_ : vstop1

plot(vstop, color = is_uptrend ? green : red, style=line, linewidth=2)


Short = Price < vstop

Long = Price  > vstop 


“”” 




Indicators conditions: 


All configured indicators will generate 2 or 3 distinct “states” based on the settings for each of them.

The States are : 


 - Aligne Short 

 - Aligne Long 

 - Neutral 


These will be used only for the “Enabled indicators” , for example if I choose to NOT use RSI ( the dropdown enable / disable option ) and all the other 5 indicators are flagging Short EA will work as if 6 indicators are aligned Short. 

Each indicator will flag a state, afterwards if all states are same Ea will work “Aligned” else it will send a “Neutral” to Triggers.


 Ea triggers : 


Ea will monitor the indicator states and will trigger as follow:


If no trade open and Short align : 

 -Ea will start a Short trade using MM+Step ( if round is underway)

 -Ea will start a Short trade using start MM ( if round is new ) 


If SHORT trade open and Short aligne :

 Ea will continue trade and grid , if enabled , will continue.


If LONG trade open and Short aligne :

 Ea will CLOSE all Long tickets ( trades ) and wait for round logic to continue ( basically will  check if the account balance is higher than recorded balance to reset or not Step MM ) 


If no trade open and Long align : 

 -Ea will start a Long trade using MM+Step ( if round is underway)

 -Ea will start a Long trade using start MM ( if round is new ) 


If SHORT trade open and Long aligne :

 Ea will CLOSE all Short tickets ( trades ) and wait for round logic to continue ( basically will       check if the account balance is higher than recorded balance to reset or not Step MM ) 


If LONG trade open and Long aligne :

 Ea will continue trade and grid , if enabled , will continue.


If No aligne a.k.a “ Neutral”:

 Ea will wait – place a sleep here in the code for better backtesting. 



Print info : 


Ea must have a info window with the following print outs : 


Curent round number 

Last stored balance ( high balance )

















































Responded

1
Developer 1
Rating
(137)
Projects
167
35%
Arbitration
11
91% / 0%
Overdue
0
Free
2
Developer 2
Rating
(260)
Projects
422
38%
Arbitration
86
44% / 19%
Overdue
70
17%
Busy
3
Developer 3
Rating
(54)
Projects
65
52%
Arbitration
5
40% / 60%
Overdue
22
34%
Working
Similar orders
CHAPTER 1: BASICS 1.THE BASICS 1.1. EXPANSION AND RETRACEMENT Expansion =>occurs when there is an impulse movement towards a direction. Retracement => is the correction movement after an impulse movement. 1.2. FIBBONACCI RETRACEMENT USED TO DETERMINE THE END OF THE RETRACTION MOVEMENT, USUALLY THE PRICE RETRACTS TO 50% OR UNTIL OTE (0.62, 0.705, 0.79) BEFORE ANOTHER IMPULSE MOVEMENT OCCURS. 1.3. BMS - BREAK IN MARKET
Hello i need someone who can convert a trading view indicator into an mt5 indicator that can work smoothly also need to add an alert on the indicator i will require to test the indicator run it for 1-2days to confirm all is okay thank you
The requirements for the order of robots XAUUSD and XAGUSD EURUSD forex in the STOP loss TAKE profit signal in this order, you can bring benefits to the changes in the market, that is, when the market changes frequently, it will also help to prevent losses and bring great profits all work to trade high and low python line position
I'm seeking a C# developer with Quantower experience to assist me in exporting data from the Option Analytic panel in real-time via an API. This data will be exported based on a window app, not a web app. You can review the document at the following link : . https://github.com/Quantower/Examples/blob/master/IndicatorExamples/GetOptionsInfo.cs Please check it before bidding NOTE : - Quantower is an app, not web
Please I Need A Programmer Who Can Create A Requirement Specification Document For My Trading System THE IDEA OF THE INDICATOR Create A Standard ZigZag Auto Fibo Indicator Combined With A ZigZag Fibonacci Time Zone Indicator Which Has The Specified Levels Written In The Indicator Strategy TEXT FILE/DOCUMENT HOW DOES THE INDICATOR KNOW AN UPTREND MOVEMENT? If Price Hasn't Touched The 123.6% Level Of The Recent Static
My idea _Anna. 50+ USD
I'm looking for a strategy where I can specify two points, such as Point A and Point B, which could be based on today's high/low or yesterday’s high/low, etc. I should have the option to define these points. The system should execute a buy order when the price goes above Point A, with the ability to set a target in percentage or points, as well as a stop-loss. Similarly, when the price drops below Point B, it should
THE IDEA OF THE INDICATOR Create A Standard ZigZag Auto Fibo Indicator Combined With A ZigZag Fibonacci Time Zone Indicator Which Has The Specified Levels Written In The Indicator Strategy TEXT FILE/DOCUMENT HOW DOES THE INDICATOR KNOW AN UPTREND MOVEMENT? If Price Hasn't Touched The 123.6% Level Of The Recent Static Uptrend Zig Zag Fibo Retracement Tool Then The Indicator Knows That The Market Is In An Uptrend And
My requirements are the following. I am ordering, I need an expert consultant on EA matters and an indicator in the trade pairs of XAUUSD and XAGUSD, we also need powerful robots for changing prices in the market. the market conditions, i.e. flexibility, then the business should be beneficial for all I need high and low line python line position to work thank you
Hello programmers, I’m looking only for veteran programmers with profound knowledge and experience in strategy optimization to improve my EA. The backtests are incredible, even with REAL TICKS of 100% quality Dukascopy data, but real results are quite disappointing on my specific brokerage. I would really love to adapt the EA so that back testing results and forward testing can better match. The strategy uses a
hello, I need quick help with ninjatrader tool, market replay is not updating candles on chart, even though time is updating on playback window. I need someone who can help remotely to see what is issue. are you available

Project information

Budget
250+ USD
VAT (19%): 47.5 USD
Total: 297.5 USD
For the developer
225 USD
Deadline
to 10 day(s)