Central dialog, and framework for multiple child EAs and asynchronous webrequest to get positions. First step of a larger project.

MQL5 Indicators Experts

Specification


This is the first job in a bigger project, firstly I need to put a framework together that can trade multiple tickers at the same time: (FXpairs) with a central dialog to control it. 

I will want to be able to have multiple versions of this running with different risk ratios, so each dialog would control a number of EAs running. There is also a central store of direction positions 

which are taken from an external server using webrequest




Control Dialog

Need a dialog to enter and control:


  • Strategy name : textbox (e.g strategy ABC, low risk)


  • A grid containing: List of tickers to trade ,for each row:

  1. tickername
  2. a checkbox to trade or not
  3. sizing per ticker: an integer
  4. Risk per ticker: an integer (number of pips)
  5. Target per tick : number of pips
  6. signal threshold: a floating point number
  7. Dropdown to choose trading threshold logic: (majority, all)


  • Checkbox to move stops (yes, not)
  • Checkbox to switch immediately (yes, not)
  • Global Stop/Start



Background Task

Have a background task to connect to a website in an asycnhronoius manner using similar process to this

https://www.mql5.com/en/articles/5337

To  receive strategy JSON positions for each ticker.  


Each ticker will have multiple strategy positions, example:


EUR :  [“EUR_strategy1”, “EUR_strategy2], 


And call the server with these names


https://{url.....}?strategy=EUR_inverse_5D


Each request will return JSON data that looks like this: 



{

  

  "datetime": "2020-06-05",

  "long_short": -1.0,

  "ticker": "ARS=",

  "contract_size": 1.0,

  "size": 1.0,

  "price": 68.753,

  "target": 66.00288,

  "stop": 69.44053,

  "target_pct": 0.04000000000000001,

  "stop_pct": 0.010000000000000002,

  "barrier_type": "actual",

  "conviction": 0.538047

}


It will query every 5 minutes for updated positions and store them centrally.



Trading Logic

Initial logic to decide how to trade the positions,


Two types of trading logic:


Threshold Logic

a) If dropdown for ticker is Majority:


Total_ticker_conviction = 0

For each signal for the ticker:

Total_ticker_conviction +=  float(conviction)*float(sign)


Total_ticker_conviction /= number of signals for ticker

Total_ticker_conviction = abs(Total_ticker_conviction)


If Total_ticker_conviction > threashold for this ticker. Make trade


b) If all signals for a ticker are the same (long_short is the same) then take the trade


If conviction > threshold then trade the direction



Target and Stops Logic


If not in a trade then take the trade. :

  Set stop as RISK PIPs away (use data from the dialog). 

  Size is (from the dialog)

  Internally remember the target per ticker.


Else If in position :

  If new position is the same as current position:

    if move stops is true :

      move the stop and set the target to the new target

      Set stop as RISK PIPs away (from the dialog). 

      Internally remember the target per ticker. Current price +-(target pips from dialog)

      Size is from the dialog



  If new position is opposite:

    If switch immediately is true:

      Exit the previous position and enter new position






PnL charts

Need a live PnL per ticker

Need a Combined PnL chart




Responded

1
Developer 1
Rating
(3)
Projects
4
50%
Arbitration
1
100% / 0%
Overdue
2
50%
Free
2
Developer 2
Rating
(188)
Projects
212
58%
Arbitration
9
11% / 89%
Overdue
8
4%
Free
Similar orders
I have list of free indicators in tradingview and i would like to convert them into an mt4 ea, But the EA will have and work based on the indicators features The list of the are listed as follows :> 1. Market Structure Break And Order block. By EmreKb 2. Rainbow Adaptive RSI by LuxAlgo 3. Multiple MA (21,50,100) 4. SuperTrend Please don't apply if can't do this, So we won't ourselves time
good day i have an indicator but need the source for this reason The indicator only work on a single Time frame open trade, and close with only a single TF i will like the indicator work on multiple time frame just like other installed indicator My coder said the reason it cannot work like other indicator installed is because it has no buffer First confirm if you have the source code because its a popular indicator
Hello! I am looking for an experienced Pine Script coder to create a custom indicator for mapping market structure based on fractals. The developer must be skilled in Pine Script and have a solid understanding of how to code market structure indicators. Looking forward to working with a talented developer
Hello developers, I would like to hire someone can convert the Radar Signal indicator: https://www.youtube.com/watch?v=5DmKcy7rb-U&nbsp ; to it's TradingView equivalent. Radar signal indicator is the combination of 7 classic MT4 indicators. They include ADX, RSI , CCI , OsMA, ATR, WPR. The indicator shows the values of these indicators in blue and red. Red color indicates a bearish market condition and the blue shows
Hi , i want a indicator that shows the trades history on the chart, just for current day, like : first trade : -54 Second trade : -52 Third trade : +126 , and after three trades, display "No more trades"
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
Here's a clearer step-by-step guide to checking the last 50 candles on your chart and applying Fibonacci retracement levels based on their colors: Identify Candle Color: Start from the 100th candle from the left on the chart and check its color. If the 100th candle is green (i.e., the close is higher than the open): Draw a Fibonacci Retracement: From the highest price to the lowest price of this candle. Check the
Here's a clearer step-by-step guide to checking the last 50 candles on your chart and applying Fibonacci retracement levels based on their colors: Identify Candle Color: Start from the 100th candle from the left on the chart and check its color. If the 100th candle is green (i.e., the close is higher than the open): Draw a Fibonacci Retracement: From the highest price to the lowest price of this candle. Check the
I have an equity reporter. This equity reporter displays the maximum and minimum equity reached over a specific interval. So, if the interval is set to 24 hours, the script will generate data in the format: "Profit ATT" (profit AtThatTime) shows max./min. during the specific interval This specific report shows data in pips. It can also be set to display in price or percentages. The interval is also easily adjustable
I want you to make me an indicator in Training View. Its idea is very simple, and I want it to have an alarm. Here's a clearer step-by-step guide to checking the last 50 candles on your chart and applying Fibonacci retracement levels based on their colors: Identify Candle Color: Start from the 100th candle from the left on the chart and check its color. If the 100th candle is green (i.e., the close is higher than the

Project information

Budget
100+ USD
For the developer
90 USD
Deadline
from 1 to 10 day(s)