Simple Price action EA

Job finished

Execution time 13 days
Feedback from customer
Wonderful developer. Highly Recommended.
Feedback from employee
Although communication is limited by time, the project can be completed very well. Recommended customer.

Specification

Indicator to be created :

Price Action candle :

Input : Number of previous candles to compare  to determine price action candle.

Variable name: No_previous_Candle_price_action

Rules :

When a candle is closed above previous < No_previous_Candle_price_action>  days candle high then it is called Buy Price action candle

When a candle is closed below previous < No_previous_Candle_price_action>  days candle Low then it is called Sell Price action candle

*closed , this rule is checked only once at close of candle.

https://charts.mql5.com/25/246/audusd-d1-fxcm-australia-pty-2.png


Right hand side Legend :

Price Action : Buy Price action Candle/Sell Price action candle/No Price action formed.

 

Pin Bar:

  • Length of candle = absolute(high-low)

Body of Candle = absolute (Open-close)

Input: no_of_past_candle_pinbar

Bullish pin bar

Rule 1: Body of candle should be formed above 60% Length of candle.

Rule 2: length of Tail (wick or shadow) should be more than 60% of length of candle.

Rule 3: low of tail should be lower than previous < no_of_past_candle_pinbar > candles.

We are not checking colour (bullish or bearish) nature of candle to determine bullish pin bar.

Bearish pin bar

Rule 1: Body of candle should be formed blow 60% Length of candle.

Rule 2: length of Tail (wick or shadow) should be more than 60% of length of candle.

Rule 3: High of tail should be higher than previous < no_of_past_candle_pinbar >

We are not checking colour (bullish or bearish nature) of candle to determine bullish pin bar.

Mark Pin bar candle with different colour in chart.

https://charts.mql5.com/25/247/audusd-d1-fxcm-australia-pty.png


Legend:

Candle Length: High Price -low price: <Value>

Body of Candle: Close price -open: Absolute value

Length of Candle: length of tail

 

Area to Trade:

Input: Time frame (1w/1d/4hr) Drop down menu

Zig zag parameter is used (default 5,3,2),

Last low of zig zag (V shape is formed by Zig Zag parameter) candle tail area (Low to close area) is considered as Buy Trade zone.

Last high of zig zag (V shape is formed by Zig Zag parameter) candle nose area (High to open are) is considered as Resistance.

 

Resistance price area to be marked with RED colour till current candle.

Support Price area to be marked with Green Colour till current candle.

https://charts.mql5.com/25/246/audusd-d1-fxcm-australia-pty.png



EA Logic:

 

Indicator to use:Zig Zag,ATR, Timeframe to trade (1hr/1 day,1 week etc) - Drop down, Volume to trade .


Trade initiation


Sell Trade :

 

Last Closed candle should be  traded in trade zone and closed below trade zone.

Last closed candle should be bearish pin bar candle or sell price action candle.

Risk (current trade price to Stoploss)< n times of reward (reward = absolute(current price - previous zig zag low))


https://charts.mql5.com/25/247/gbpusd-mn1-fxcm-australia-pty.png

 

Stop loss line:

We draw two stop loss as per below logic:

When a Sell price action candle or bearish pin bar is formed, high of that candle is marked as stoploss. This line needs to be checked at close of each candle and need to redraw till trade is active. This stoploss line is called End of day stoploss.

When a Sell  price action candle or bearish pin bar is formed, Intraday stoploss is calculated as “High of bullish pin bar candle or high of sell price action candle” + n times of ATR value of last closed candle) n here is input

 


Stoploss logic Execution.

When a candle is closed above End of day stoploss or when a price reach is intraday stoploss , whichever happens first is stoploss.

 

 

Trade closure.

 

Risk is calculated when trade is opened , only once for a trade

Risk = Absolute ( trade open price -Stoploss price )

Tarde closure Price =trade price - n times of risk

 




Buy Trade :

 

Last Closed candle be  traded in trade zone and   closed above trade zone.

Last closed candle should be bullish pin bar candle or Buy price action candle.

Risk (current trade price to Stoploss)< n times of reward (reward = current price - previous zig zag high)



current price to buy target price). 

Stop loss line:

We draw two stop loss as per below logic:

When a Buy price action candle or bullish pin bar is formed, Low of that candle is marked as stoploss. This line needs to be checked at close of each candle and need to redraw till trade is active. This stoploss line is called End of day stoploss.

When a Buy price action candle or bullish pin bar is formed, Intraday stoploss is calculated as “Low of bullish pin bar candle or Buy price action candle” - n times of ATR value of last closed candle) n here is input

 

 

Stoploss logic Execution.

When a candle is closed below End of day stoploss or when a price reach is intraday stoploss , whichever happens first is stoploss.

 

 

Trade closure.

 

Risk is calculated when trade is opened , only once for a trade

Risk = Absolute ( trade open price -Stoploss price )

Tarde closure Price =trade price + n times of risk

 


Responded

1
Developer 1
Rating
(71)
Projects
103
20%
Arbitration
6
0% / 83%
Overdue
3
3%
Free
2
Developer 2
Rating
(153)
Projects
224
58%
Arbitration
3
100% / 0%
Overdue
45
20%
Loaded
3
Developer 3
Rating
(169)
Projects
204
30%
Arbitration
25
40% / 44%
Overdue
12
6%
Free
4
Developer 4
Rating
(408)
Projects
536
75%
Arbitration
9
44% / 0%
Overdue
24
4%
Free
5
Developer 5
Rating
(27)
Projects
43
7%
Arbitration
18
6% / 78%
Overdue
26
60%
Free
6
Developer 6
Rating
(3)
Projects
1
100%
Arbitration
1
0% / 0%
Overdue
0
Free
7
Developer 7
Rating
(26)
Projects
34
26%
Arbitration
7
14% / 43%
Overdue
7
21%
Free
8
Developer 8
Rating
(65)
Projects
71
30%
Arbitration
8
0% / 88%
Overdue
5
7%
Free
9
Developer 9
Rating
(117)
Projects
138
41%
Arbitration
30
7% / 77%
Overdue
17
12%
Free
10
Developer 10
Rating
(84)
Projects
149
31%
Arbitration
32
34% / 41%
Overdue
43
29%
Free
11
Developer 11
Rating
(221)
Projects
369
66%
Arbitration
10
50% / 0%
Overdue
46
12%
Free
12
Developer 12
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
Similar orders
I want to make a new dashboard using 3 common indicators and the ADX indicator , which you must supply I have a MA dash which you can strip & reuse if it helps you I tried to cover all questions in the attached but i'm sure there'll be more
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
Long Position 1. Trend Line: When a Lower High (LH) is formed, draw a trend line from the previous Higher High (HH) to the new LH. 2. Trend Line Adjustment: If a new Lower High (LH) is formed without breaking the trend line, redraw the trend line to the new LH. Draw a trend line between the Higher High (HH) and the Higher Low (HL). If a new Higher High (HH) is formed, remove the previous trend line and draw a new one
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange and forex market. I already have some source code to a strategy but would like to enhance it to make it profitable and automated
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for

Project information

Budget
30 - 80 USD
For the developer
27 - 72 USD
Deadline
from 4 to 10 day(s)