Cost Averaging With Hedge

MQL5 전문가

작업 종료됨

실행 시간 65 일

명시

Cost Averaging With Hedge

 

This EA will do normal cost averaging trades. After X amount of trades are entered in one direction, EA will start a hedging trade in the opposite direction. The Hedge Trade will be linked to the oldest trade in the cost averaging sequence. Example:

10 Trades in dollar cost sequence as BUY Orders

.1

.2

.3

.4

.5

.6

.7

.8

.9

1

 

Hedge SELL order is 50% of all open order positions and TP of 20 pips of Hedge Trade

Sell order = 2.75

Buy Order of .1 is linked to Sell order of 2.75, and both orders to close when both LINKED TRADE profit is 20 pips of 2.75 (loss of size .1 and profit of size 2.75 must = 20 pips profit of 2.75)

 

 

 

--General Trading--

Direction Start (Buy, Sell, Front Buttons)

    • Note: Setting Buy and Sell to allow for backtesting without Visual Mode (but visual mode should still work for all 3 options)

Fixed Starting Lot

% Balance Starting Lot (override Fixed Lot if set)

Lot Step Multiplier

Distance (in pips) – Distance between trades

Max Open Orders (only General Orders)

Max Lot Size (only General Orders)

Basket TP Method (TP Fixed / Dynamic) Note: Entire Basket including Hedge Trade loss)

                Note: Basket TP to always has priority over any other TP setting.

TP Fixed (in Pips) = Based on original opening order

Dynamic (in Pips) = will adjust to the combined size of all open General Trades

  • Example, if set at 10 pips, and starting General order is .1 and if basket is now .55 General Orders, then TP is 10 pips of .55

 

 

--Hedge Trade—

Behavior 1 – As one hedge trade closes, open another based on new calculations after a 10 second wait.

Behavior 2 - If hedge size is equal to combined General orders, then hedge order will not place until more General orders are places. Note: This logic is only to prevent if remaining General order = 0.01, so that Hedge or is not also 0.01

Trade Entry # - The amount of General Trades that are active before hedge trade is entered Note: If General Orders are under this number, then Hedging will stop until this number is reached again.

Lot Method ( Fixed Lot / % General Orders)

Fixed Lots Size

% General Orders (will trade % of open “General Trading” orders)

·         Round Downward to next .01 lot size

 

Hedge + General TP (in Pips) – IF set at 0, then both General Trade and Hedge trade to exit at breakeven). Take Profit of the HEDGE TRADE lot size will be used

 

--Latest Orders Close Hedge—

Latest Orders Close Hedge (True/False) – This will run a sub-calculation of the latest orders to open, giving them the ability to close out the hedge order (Its like Hedging against the Hedge order)

Close Hedge TP (Based on size of Hedge Trade)

Example After Hedge Trade is active and new lots entered, and TP = 40:

1.10

1.20

1.30

1.40

1.50

1.60

1.70

1.80

1.90

2.00

 

When market moves in direction of General Trades, then profit of 1.80 + 1.90 + 2.00Loss of Hedge Trade 2.75 = TP of 40 pips of lot size 2.75.  ALL 4 Trades to close

 

Rule 1: Hedge trade must be in the negative

Rule 2. The Market must move in profit past entry to be considered to close with hedge trade. For example, the Market must move past 1.80 in profit for the order to be calculated/closed with Hedge trade

Rule 3. General Closed orders can reenter if market returns to same distance point. Example: If 1.80 closed with Hedge Trade, then 1.80 will reopen if Market retraces to same price.

 

 


----Front Buttons---

Start Buy

Start Sell

Phase Out (Will Set this is last “cycle”) – Button should either change color or show other method of being active). Click it again should “undo” the Last Cycle Command

Close ALL – Will close all active positions and prevent any new cycle from starting until Button is pressed (Will do the same even if parameter “Direction Start” is set to Buy or Sell).

 

 


응답함

1
개발자 1
등급
(88)
프로젝트
143
39%
중재
21
19% / 48%
기한 초과
30
21%
무료
2
개발자 2
등급
(45)
프로젝트
59
44%
중재
8
50% / 38%
기한 초과
7
12%
무료
3
개발자 3
등급
(7)
프로젝트
14
21%
중재
1
0% / 100%
기한 초과
3
21%
무료
4
개발자 4
등급
(1)
프로젝트
2
0%
중재
1
0% / 100%
기한 초과
0
무료
5
개발자 5
등급
(119)
프로젝트
169
38%
중재
9
78% / 22%
기한 초과
15
9%
무료
6
개발자 6
등급
(356)
프로젝트
632
26%
중재
89
73% / 13%
기한 초과
12
2%
무료
7
개발자 7
등급
(568)
프로젝트
641
41%
중재
21
57% / 29%
기한 초과
47
7%
작업중
비슷한 주문
Hello, I am looking for a professional programmer to optimize my existing EA integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. i want it to be an EA that can be trusted to carry trade with the help of chat gpt and also have a very low drawdown
Hello, I am looking for a professional programmer to create a trading expert on the MT4 platform, integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. Further details will be provided to the applicants later
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
EA based on RSI and MA 100 - 400 USD
Program is based on RSI and MA indicators dynamic as triggers, for Open/Close criteria. Runs automatically but inputs can be updated manually. It uses a GUI to manage it. Multi TF analysis. Log register of every operation for analysis (db) Open Source deliver. Kindly apply IF you have previous experience with trading and mql/python/c bot/algo developing. And if you have a good track record . ps: Better if you have a
This is and EPA (Entry Point Analyzer). Automatically analyzes the algorithm for XAU/USD and places a safe entry point mark for your trade. This has been tested and gives out 90% success rates
I am looking for an experienced MQL5 developer to help me finalize and optimize an Expert Advisor (EA) for the FTMO challenge. I have already built a significant portion of the code, but it requires further refinement and optimization to ensure it functions according to the trading strategy I intend to use. I am happy to share all the resources, including the current code, reference materials, and detailed
dreams good and have a great Cash out from your smart phone , tuyoywuiy glamorous flood see full idk idk slow so dolls stupid sis workouts who's spark koalas oral waits also doggo idk
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
I need to get a trading forex robot based on support and accurate resistance and moving avarage more details will be provided on the video links I want a situation where by once I put the robot on the chart and choose buy or sell and the number to open then it will only buy or sell in that particular direction only
NADGIO 30+ USD
I need a developer that can convert two Buy and Sell indicators into a trading robot. the indicators has an input parameter, this should be made available for adjustment. Features 1. Break Even 2. Trailing Stop 3. Global TP and SL 5. Time Filter 6. News Filter (If possible)

프로젝트 정보

예산
100 - 250 USD
개발자에게
90 - 225 USD