EA strategy with correlation between currency pairs

MQL5 エキスパート

仕事が完了した

実行時間1 日
依頼者からのフィードバック
Attention! This is a special developer. You will not regret it. Very Good! And the better, the communication was in Portuguese.

指定

I am studying the correlation between currency pairs, and would like you to do an EA for me, preferably in MQL5, but if you prefer can be a MQL4 .

I would like to see in practice a system using a strategy of correlation. How to work a system based on this idea? Nothing like an EA to we analyze this possibility. :)

Within my the point of view as layperson, I think it is a simple system, from what I've read, especially in MQL5, which has this peculiarity in the language engineering  in relation to the use of currency pairs in different strategies.

The system would be run daily (TIMEFRAME D1 TO OPEN ORDER), starting and closing business operations within schedule determined by the trader. 
In the Sunday the EA should not work in the sunday, in the opening and closing of market.

Should also have a parameter specified time to close the trade on Friday.

Parameters 

StartTimeDaily: 00:00 (time of the broker)
EndTimeDaily: 00:00 (time of the broker)
EndTimeFriday: 00:00 (time of the broker)

To set the direction of trade (Buy or Sell), we use a single indicator, SEMAFORO SIGNAL!

Rules  to open  orders Sell or Buy  of the main currency pair in time determined by the parameter StartTimeDaily: TO WORK IN TIMEFRAME D1 TO RUN ORDER IN THE MAIN CURRENCY PAIR 

BUY ORDER TO MAIN CURRENCY PAIR
After painting signal DOWN of SEMAFORO, at the time determined by the parameter StartTimeDaily, all orders from the main pair are long orders.

SELL ORDER TO MAIN CURRENCY PAIR  
After painting signal UP of SEMAFORO, at the time determined by the parameter StartTimeDaily, all orders from the main pair are short orders.

NOTE: EA only opens trading orders for the main pair and pair correlated if the orders that were opened by the EA were closed during the day.

Rules to open orders Sell or Buy  in  pair currency correlated

1. There will be a parameter to determine whether the EA will open orders to pair correlating 
CorretionRun: True or False
If False,  EA only opens orders in the main currency pair

2. If True, EA opens orders to main pair and pair correlated. I put the EA to work on the graph of the pair main, when the EA  enter with an order to trade this currency pair main, the EA automatically enters with an order to trade in the pair correlated that can be  in the same direction or opposite direction.
For this purpose would be two parameters:

Paircorrelation: (here I select the currency pair to correlate with the main currency pair
DirectionOrder: here will be accepted two values​​, 0 or 1

ZERO - the EA will open an order of this currency pair chosen in the same sense of order that open the main pair.

ONE - the EA will open an order of this currency pair chosen in the opposite order that open the main pair

The pairs to be used for correlacinamento will be:

AUD/USD
EUR/AUD
EUR/CHF
EUR/GBP
EUR/JPY
EUR/USD
GBP/USD
NZD/USD
USD/CAD
USD/CHF
USD/JPY
XAG/USD
XAU/USD

Rules for the closing of the orders with Profit.

1 - To close Orders will be set two parameters :

1.a - TakeProfitDayEnd : This parameter is a Percentage value about the free margin of the account balance of the broker.

1.a.1 - The trader puts a percentage value in this parameter,  so is determined a time by parameter EndTimeDaily or EndTimeFriday,  if there is a positive profit between the main pair and pair correlated in this percentage or higher about the free margin of the broker account, the EA closes the daily position in the determined time.

1.a.2 - If there is a smaller profit or negative between the main pair and pair correlated than the percentage this parameter about the free margin of the broker account,   the EA WILL NOT CLOSE position daily.

1.b - TakeProfitFull : This parameter is a Percentage value about the free margin of the account balance of the broker. Regardless of the time set in parameter ndTimeDaily or EndTimeFriday, profit is reaching this percentage about the free margin of the broker account , the EA closes daily positions immediately. The next trading orders will only will be open the next day at the time set by parameter StartTimeDaily.

2 - The trade position of principal and correlating currency pair  only be closed when  there is positive profit established by TakeProfitDayEnd or TakeProfitFull parameters, and there isn't profit, the positions will remain open as long as necessary, in consequence , while doesn't close these orders, the EA doesn't will open more no order.

Rules for Stop Loss.
The Stop Loss is defined by a percentage about the free margin of the broker account.
After opening trade order, according percentage defined in Stop Loss parameter by user, with basis in volume size, the EA will calculate the price to put in the chart. This calculus will be placed also in the trade order of the correlated currency pair.
Ex:
Stop Loss: 3 (3% about free margin)
Volume Size: 0.10 (identified by EA)
Free Margim : 10000 (identified by EA)

If Main Pair is the EURUSD and correlating pair is the USDJPY.

The distance of the stop loss will be calculated in PIP.

To EURUSD
10000 * 3 = 300
whereas one PIP is around 0,10 (10 cents), this value is calculated internally by EA, then the monetary value to volume size is 0,10 (cents)/0.10 = 1,00

So 3% in pips are 300 PIP ( (10000*3%)/1,00) = 300 Ticks

If trade order was in the price 1.34560, the SL to Sell is equal 1.37560 or to Buy is equal 1.31560 . 

To USDJPY
1000 * 3 = 300
whereas one PIP is around 0,10 (12 cents), this value is calculated internally by EA, then the monetary value to volume size is 0,12 (cents)/0.10 = 1,20

So 3% in pips are 300 PIP ((10000*3%)/1,2) = 250 Ticks

If trade order was in the price 92.500, the SL to Sell is equal 95.000 or to Buy is equal 90.000

Note:
1.  When closes the main par or the correlated pair, both pairs will be closed.
2. THIS IS IMPORTANT: as are two orders opened, if the sum of both is equal to the Stop Loss parameter percentage, no matter if the prices of Stop Loss of EURUSD and USDJPY didn't was reached, the EA closes both orders. 
3. Closing the Stop Loss orders, the EA only will open new orders the next day, unless it is on the Sunday, in this case the orders will open on the monday.

Rules for Determining the Size Volume Currency Pair Main. 
We will use only two parameters: 
PercentageRisk: 
TicksLimiter: 

Here we will have the maximum volume size that EA may apply in a trading operation in the main currency pair . 
This calculation is performed about the free margin of broker account, in this example the values ​​above, the EA will calculate the volume size about the free margin of 5% the ratio of  400 PIPs 
Independent of any main currency pair,  we will always consider that the monetary value of ONE PIP (tick) is 0.10 (10 cents), this is an immutable value. The free margin is identified automatically by the EA. 
How will the calculation: 
PercentageRisk: 5% 
TicksLimiter: 400 
Free Margin: 10500 (identified by the EA with the broker) 
ONE PIP Value: 0.10 (immutable value) 
Formula: [(PercentageRisk * Free Margin) / TicksLimiter] * Value ONE PIP 
         [(10500 * 5%) / 400] * 0.10 = 0.13 

The volume size of this operation will be 0.13 

Volume Size to Currency Pair Correlated

Will be defined by a multiplier value , we call this parameter of MultiplierVolumeSize_to_Pair Correlation

Example:

Correlation MultiplierVolumeSize_to_Pair: 1.5

EA will multiply the volume size 0.13 by 1.5, then the volume size of the correlated pair is 0.19 


Below,  an example with theoretical images with the following parameters:

Opened Order - Parameters
StartTimeDaily: 00:01 (start monday, it doesn't work in the sunday)
EndTimeDaily: 23:59  
EndTimeFriday: 19:00
BarLeft: 25
BarRight: 2
CorretionRun: True
Paircorrelation: USDJPY
DirectionOrder: 0 (the EA will open an order currency pair correlated chosen in the same sense of order that open the main pair)

Closed Order - Parameters
TakeProfitDayEnd: 5 (5% free margin)
TakeProfitFull: 10 (5% free margin) 
StopLoss =10 (5% free margin)

Volume Size:
PercentageRisk: 5%
TicksLimiter: 100
MultiplierVolumeSize_to_Pair Correlation: 1.2

Values identified by EA - This parameters aren't defined by user
TO WORK IN TIMEFRAME D1 TO RUN ORDER IN THE MAIN CURRENCY PAIR 
Main Par: EURUSD
Margem Livre: 2000

Value One PIP: 0,10

 

IMAGE 1 

IMAGE 2 

 

Other example equal image 1, but with a Signal Down to open order: 


 


 

応答済み

1
開発者 1
評価
(62)
プロジェクト
140
46%
仲裁
19
42% / 16%
期限切れ
32
23%
2
開発者 2
評価
(90)
プロジェクト
159
61%
仲裁
40
18% / 63%
期限切れ
70
44%
3
開発者 3
評価
(461)
プロジェクト
902
77%
仲裁
25
16% / 68%
期限切れ
100
11%
4
開発者 4
評価
(195)
プロジェクト
395
28%
仲裁
155
20% / 52%
期限切れ
112
28%
5
開発者 5
評価
(82)
プロジェクト
150
29%
仲裁
9
44% / 11%
期限切れ
46
31%
6
開発者 6
評価
(18)
プロジェクト
37
43%
仲裁
6
17% / 50%
期限切れ
17
46%
7
開発者 7
評価
(7)
プロジェクト
15
47%
仲裁
6
33% / 17%
期限切れ
4
27%
8
開発者 8
評価
(15)
プロジェクト
18
61%
仲裁
4
0% / 100%
期限切れ
8
44%
9
開発者 9
評価
(1)
プロジェクト
1
0%
仲裁
0
期限切れ
0
10
開発者 10
評価
(71)
プロジェクト
254
53%
仲裁
16
50% / 38%
期限切れ
83
33%
11
開発者 11
評価
(54)
プロジェクト
164
43%
仲裁
43
47% / 16%
期限切れ
58
35%
類似した注文
Zzz 30+ USD
// กำหนดค่าตัวแปรพื้นฐาน input double lotSize = 0.1; // ขนาดล็อตที่ต้องการ input int takeProfit = 50; // ระยะ Take Profit (จุด) input int stopLoss = 50; // ระยะ Stop Loss (จุด) input int magicNumber = 123456; // หมายเลข Magic Number input int smaPeriod = 14; // ช่วงเวลา Simple Moving Average (SMA) // เวลาที่ออเดอร์ล่าสุดถูกเปิด datetime lastOrderTime = 0; // ฟังก์ชั่นหลักของ EA void OnTick() { //
Mobile robot 50 - 100 USD
I want a profitable scalping EA robot for mt5 and mobile phones (licence key should be provided).the video link attached below indicates how the EA robot should operate it.it analyses the market before taking trades and it trades candle to candle .also coding samples are provided on the video .it should be applicable to all timeframes.it should trade indices(Nas100,US30,S&p500,GER30,)
I use the translator I hope to make myself understood. I'm looking for a cyclical indicator. mt5. I attach videos to understand how it works. to be inserted at any point of the graph. It is possible to change the color and thickness of the line
This EA must have the following functions together: BE: place BE when the price reach a certain gain in PIPS and you can choose the offset too, so, for example it activates after 10 pips with 1 pip of offset so you can have profit with BE too Auto SL and TP Can manage the trades made by phone when MT5 is open in the PC or VPS Trailing stop (step by step): I can decide at what number of pips the trailing stop get
This is a strategy based on crossing two trend indicators on the second timeframe (1s, for example). We work not only with the market but with the limit orders as well (robot must "read" an order book). Read the whole instruction please for more details. Speak Russian, English
Martingale EA for MT5 30 - 100 USD
Criteria: Only one trade at a time. Cannot open another trade if one is running Trade on EURUSD only, once job is completed I will be happy to schedule more for other pairs You choose entry strategy and criteria win rate must be above 50% in long term backtest of EURUSD Every trade has got TP and SL Trades to last about a day, few trades a week, at least 10 pips gain per trade, so that it can be launched on normal
I have a indicator, mql file. The signals are seen below on a EURNZD H1 chart. Very important to get accurate entries. The signal to trade is the first tic after the the indicator signal paints. I've tried to demonstrate that below. Other than that the EA will have a lot size escalation, an on-screen pip counter, a button to stop taking new trades, SL/TP, and magic number. I would like the indicator to be within the
I would like to create an EA based on the Shved Supply and Demand indicator. you can find the Shved Supply and Demand v1.7 indicator in the following link https://www.mql5.com/en/code/29395 NB: Checks the trading robot must pass before publication in the Market ( https://www.mql5.com/en/articles/2555 ) MQ5 file to be provided
Im looking for an coder to code an EA: Trade management 1. opening trades according to the indicator 2. trades settings to choose from like: open all trades according to the signal open only trade 1,2,3 or 4 % per trade ( example 50/30/20 of the lot settings, with 4 trades it would be for example 50/30/10/10) 3. SL/Trailing settings: Move SL to entry after hitting TP1/TP2 or TP3 moving SL by % keep the original SL
Hi I'm looking to have 2 of my pinescript strategies converted to MQL5 and was wondering if you could first give me a quote for the more simple strategy and then for both the simple and complex strategy together. The simple strategy is a MACD crossover type thing that uses a special EMA script that filters out some ranging price action and also fractal candles for the stop loss. The second strategy is market

プロジェクト情報

予算
45 - 50 USD
開発者用
40.5 - 45 USD