› Forums › Development › Trading made REALLY Simple
This topic has been reported for inappropriate content
Tagged: Peak EA
- This topic has 455 replies, 41 voices, and was last updated 8 years, 9 months ago by
Anti.
- AuthorPosts
- November 19, 2015 at 2:43 pm #9287
Instructions on how to contribute/participate in this thread are here: post #10337.
VlanFx is the only person authorized to add or update versions to the “official” EA of this community.
Each suggested addition/filter/contribution MUST add value to the EA recent version.
Our base-line for comparison are the parameters in post #10329 (same params on all 7 Majors), and not some over optimized, specific ones.
Vluable addition can be either: Increased Profit, reduced Risk, eliminating Loosing trades, improved Win rate, etc…
__________________________________________________________________________________
If we assume that the attached picture represents almost all financial markets, we can create a proftable, low risk, Trading System.
Basically, all we need is 3 functions.
But beware: each function must be sturdy, definite, and take almost all relevant info into consideration.
The Functions are:
Trend: returns (1) for UpTrend, (-1) for DownTrend, (0) for NoTrend/Ranging, Consolidation.
Peak: returns (1) for Peak, (0) for none.
Trough: returns (1) for Trough, (0) for none.
Logic:
We go LONG if Trend is (1) and Trough is (1).
We go SHORT if Trend is (-1) and Peak is (1).
We sit on our hands if Trend is (0)….
SL & TP will be discussed later on.
Parts of Peak & Trough are already given in different threads.
What is required is your ingenious work on DEFINITE Trend, Peak, Trough functions.
Looking forward…
G.
Attachments:
You must be logged in to view attached files.November 19, 2015 at 3:43 pm #9292This reply has been reported for inappropriate content.
Subscribed!
Still very busy with my integrated CIX, but following here with interest. Thanks a lot for starting this!
s.
A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)
November 19, 2015 at 5:23 pm #9296This reply has been reported for inappropriate content.
Subscribed

Pip
skype : pipatronic
November 19, 2015 at 10:25 pm #9308This reply has been reported for inappropriate content.
Basically, Peak and Trough are the same function – only in reverse.
Remember, they should be as rigid, false tolerant as possible to resemble the human eye.
G.
November 20, 2015 at 8:44 am #9321This reply has been reported for inappropriate content.
How many bars can these functions lag? Because my eyes lag quite a few bars
November 20, 2015 at 9:32 am #9326This reply has been reported for inappropriate content.
How many bars can these functions lag? Because my eyes lag quite a few bars

Our target is minimal lag and minimal-to-none false signals.
I just gave an initial basic guidelines, which must be followed, for coders to improve on that.
G.
November 20, 2015 at 1:18 pm #9331This reply has been reported for inappropriate content.
If we assume that the attached picture represents almost all financial markets, we can create a proftable, low risk, Trading System. Basically, all we need is 3 functions. But beware: each function must be sturdy, definite, and take almost all relevant info into consideration. The Functions are: Trend: returns (1) for UpTrend, (-1) for DownTrend, (0) for NoTrend/Ranging, Consolidation. Peak: returns (1) for Peak, (0) for none. Trough: returns (1) for Trough, (0) for none. Logic: We go LONG if Trend is (1) and Trough is (1). We go SHORT if Trend is (-1) and Peak is (1). We sit on our hands if Trend is (0)…. SL & TP will be discussed later on. Parts of Peak & Trough are already given in different threads. What is required is your ingenious work on DEFINITE Trend, Peak, Trough functions. Looking forward… G.
Hi G,
may i know how do you define a trend ? I am sure you are not using EMA cross
November 20, 2015 at 2:07 pm #9332This reply has been reported for inappropriate content.
Some time ago I tried to code a trend indicator based on zigzag algorithm. But it was far away than a human eye.
November 20, 2015 at 4:24 pm #9339This reply has been reported for inappropriate content.
Let’s focus on one issue at a time.
Currently the task is creating a highly reliable Peak & Trough functions.
Defining Trend will be the next issue/task, after successful completion of the above task.
G.
November 20, 2015 at 6:00 pm #9348This reply has been reported for inappropriate content.
Not sure if this is what you want to hear. But some thoughts.
What can indicate a trend?!
* longer upper/lower shadows
* bigger up- than down-bars indicate up trend, bigger down- than up-bars indicate down trend
Thus, maybe a combination of this and other functions of price could be used to determine a trend direction. We “just” have to define a threshold to know when the market is ranging or trending. Decreasing up/down signals and increasing down/up signals than indicate probable tops and bottoms.
But no idea how to do it. Did many experiments during last months but without success.
November 22, 2015 at 7:20 am #9401This reply has been reported for inappropriate content.
Not sure if this is what you want to hear. But some thoughts. What can indicate a trend?! * longer upper/lower shadows * bigger up- than down-bars indicate up trend, bigger down- than up-bars indicate down trend……
If we get so many bull/bear candles compare to bear/bull, i am sure it is tooooo late.
November 22, 2015 at 9:37 am #9404This reply has been reported for inappropriate content.
My understanding of trends is that they form like an exponential function. Thus, before a trend ends, it becomes weaker. We see a decrease of bulls and an increase of bears or vice versa. Therefore, before a new trend starts, we should have reached some kind of equilibrium (bulls equals bears). If market really behaves that optimal, it should be possible to identify a new trend already after one candle of the new trend. But … markets are not that optimal, are they?
I’d like to hear what @gg53 thinks about it and if he/she has an idea how to derive a formula he/she wants to see.
-
This reply was modified 10 years, 5 months ago by
Anti.
November 22, 2015 at 11:09 am #9406This reply has been reported for inappropriate content.
My understanding of trends is that they form like an exponential function. Thus, before a trend ends, it becomes weaker. We see a decrease of bulls and an increase of bears or vice versa. Therefore, before a new trend starts, we should have reached some kind of equilibrium (bulls equals bears). If market really behaves that optimal, it should be possible to identify a new trend already after one candle of the new trend. But … markets are not that optimal, are they? I’d like to hear what @gg53 thinks about it and if he/she has an idea how to derive a formula he/she wants to see.
He/She wants YOU to scratch your head and come out with something that WORK…
I can give you some guidelines and hints, but only after previous task is refined and completed.
G.
November 22, 2015 at 3:34 pm #9408This reply has been reported for inappropriate content.
My understanding of trends is that they form like an exponential function. Thus, before a trend ends, it becomes weaker. We see a decrease of bulls and an increase of bears or vice versa. Therefore, before a new trend starts, we should have reached some kind of equilibrium (bulls equals bears). If market really behaves that optimal, it should be possible to identify a new trend already after one candle of the new trend. But … markets are not that optimal, are they? I’d like to hear what @gg53 thinks about it and if he/she has an idea how to derive a formula he/she wants to see.
Agree with everything you wrote. Nearly always slope of price can be identified with S/R. Price can make a new high and it can clearly be identified as a change in behavior and you should be looking for weakness to take hold
-
This reply was modified 10 years, 5 months ago by
e3.
-
This reply was modified 6 years, 4 months ago by
lohnere.
Attachments:
You must be logged in to view attached files.November 22, 2015 at 5:57 pm #9411This reply has been reported for inappropriate content.
Thank you @e3, now we ‘only’ have to put everything together and write a function which can identify potential trends, peaks and bottoms …
@gg53: What do you mean with “take almost all relevant info into consideration”? I assume you mean the price itself and volume. Should we also take some outputs of particular indicators (that are all only functions of price and volume) into account? And what about price and volume of different currency pairs to detect tops/bottoms/trends of a single pair?-
This reply was modified 10 years, 5 months ago by
Anti.
November 23, 2015 at 6:58 am #9418This reply has been reported for inappropriate content.
Thank you @e3, now we ‘only’ have to put everything together and write a function which can identify potential trends, peaks and bottoms … @gg53: What do you mean with “take almost all relevant info into consideration”? I assume you mean the price itself and volume. Should we also take some outputs of particular indicators (that are all only functions of price and volume) into account? And what about price and volume of different currency pairs to detect tops/bottoms/trends of a single pair?
“Price” chart IS an indicator, representing manipulated “price” within deviation fluctuations.
The other factors are Volume and its direction, and Currency Strength and its direction.
G.
November 23, 2015 at 7:07 am #9419This reply has been reported for inappropriate content.
Ok.
November 25, 2015 at 10:41 pm #9457This reply has been reported for inappropriate content.
Another “hint” to Peak & Trough:
Use 3 TF’s (such as D1, H4, H1).
D1 (in this example) represents the TREND direction. Let’s assume it’s UP. Goto H4.
H4 represents the Counter trend. It should be DOWN trend and start to point UP. Goto H1.
H1 represents the exact entry. It should start to point UP.
Add the early-warning Volume algo to the H4, H1.
G.
November 26, 2015 at 7:45 am #9466This reply has been reported for inappropriate content.
Thanks G, great advice/help
I have always found that having multiple time frames up at once gives a depth of view, well for me anyway !!
Pip
skype : pipatronic
November 26, 2015 at 1:38 pm #9471This reply has been reported for inappropriate content.
Another “hint” to Peak & Trough: Use 3 TF’s (such as D1, H4, H1). D1 (in this example) represents the TREND direction. Let’s assume it’s UP. Goto H4. H4 represents the Counter trend. It should be DOWN trend and start to point UP. Goto H1. H1 represents the exact entry. It should start to point UP. Add the early-warning Volume algo to the H4, H1. G.
Hi G, all these 3 TF direction is based on TickVolume or NormalizedVolume, or?
November 26, 2015 at 2:37 pm #9477This reply has been reported for inappropriate content.
Another “hint” to Peak & Trough: Use 3 TF’s (such as D1, H4, H1). D1 (in this example) represents the TREND direction. Let’s assume it’s UP. Goto H4. H4 represents the Counter trend. It should be DOWN trend and start to point UP. Goto H1. H1 represents the exact entry. It should start to point UP. Add the early-warning Volume algo to the H4, H1. G.
Hi G, all these 3 TF direction is based on TickVolume or NormalizedVolume, or?
You can use TickVolume Above/Below “0” as good indication of “Trend”.
G.
November 26, 2015 at 9:46 pm #9495This reply has been reported for inappropriate content.
Finding Peak & Trough by Volume:
In this case we are in a general Down-Trend, so we need to find Peaks to enter SHORT.
The Volume_Oscillator, with a few enhancements, does a pretty good job. Minimal to zero LAG, Minimal to zero false signals.
Bars are colored by the swing rule found in the “True Bars/Candles and Market Sentiment” thread. So for down-trend SHORT entry we are looking at the Green bars area.
G.
Attachments:
You must be logged in to view attached files.November 27, 2015 at 3:44 am #9508This reply has been reported for inappropriate content.
Here are the Troughs, accurate even on M1, Filtered by Colored bars per Swing rule.
We are in an Up-Trend, so we look for Troughs in the Orange bars areas.
G.
Attachments:
You must be logged in to view attached files.November 27, 2015 at 7:48 am #9511This reply has been reported for inappropriate content.
Very interesting G, I have posted below a copy of your chart USDJPY M30 with the volume attached for comparison – rather strange !!
EDIT sorry – not strange, need to look at how volume oscillators are formulated to understand

Pip
Attachments:
You must be logged in to view attached files.skype : pipatronic
November 27, 2015 at 10:16 am #9514This reply has been reported for inappropriate content.
Ahh, finally something. I’ll look into this too. I think we can use something like this for tick charts. Probably less drawdown. I tried regular RSI indicator on tick and it was amazing, actually. Maybe it’s possible to use just RSI on them…?
Of course NOT on bigger charts… It’s useless.
-
This reply was modified 10 years, 5 months ago by
George.
-
This reply was modified 10 years, 5 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.