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%
무료
비슷한 주문
Creating of an expert advisor or trading bot that uses a Top Down analysis (using monthly, weekly, daily, hourly, minutes ( 30, 15, 5, 1) to determine trade direction or trend direction and makes multiple trade decisions for mt4. You can use or combine accurate trend indicators
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
I am looking forward to automate my trading strategy where I use renko bars on Tradingview. I really want to use unirenkos too, but unfortunately I couldn't figure out how to use ninjatrader on my MacBook and Tradingview does not offer unirenkos. As far as I see from your offered services you are very familiar with ninjatrader. I wanted to ask you if you could code me an Indicator for unirenkos for Tradingview so I
I am looking forward to automate my trading strategy where I use renko bars on Tradingview. I really want to use unirenkos too, but unfortunately I couldn't figure out how to use ninjatrader on my MacBook and Tradingview does not offer unirenkos. As far as I see from your offered services you are very familiar with ninjatrader. I wanted to ask you if you could code me an Indicator for unirenkos for Tradingview so I
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
Hello, I want to create an EA that can be able to take and optimise trade bids using the trend tracker concept I have developed. The tracker will monitor 2 lines to determine the trend of the market and afterwards take bids towards the correct direction. It will also be able to use a distance between the bids for the direction of the trend and plan a reverse bid when the price of the extreme doesn’t change again. The
Gradient boosting and L2 100 - 200 USD
I am looking for a well experienced programmer to put/implement a gradient boosting algorithm and an L2 to reduce overfitting in my ea which l already have which uses indicators . If you are experienced please adhere
Hello, I'm looking for a developer for repair calendar in EA MT4/MT5 (News Filter - https://ec.forexprostools.com ) for all windows servers. Note: EA MT4/MT5 works with calendar on PC Win 10, 11 but not on all windows servers. I have the source code and will post within the comments section for review. If you are able to do this and quality. Please apply. Thanks
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
SCALP MARTINCALE SPY TIMEFRAME 1MIN CANDLE - SHORT SIDE ONLY 1-SET RISK : A IS A VARIABLE (HOW MUCH $) 2-SET ATR(3) : SET THE TIME AT WHICH THE ATR SHOULD BE TAKEN, IF SET 933AM THEN THE ATR OF THE 1MIN CANDLE AT 933AM CANDLE WILL BE USED (ROUND AT 0.25 UP OR DOWN) *USE NEW YORK TIME 3-SET MAX NUMBER OF ENTRY : B IS A VARIABLE 4-SET RSI(14) / C IS A VARIABLE, IF RSI(14) > C = ORDERS OPEN 5-IF RSI(14) > C IS TRIGGERED

프로젝트 정보

예산
45 - 50 USD
개발자에게
40.5 - 45 USD