› 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, 10 months ago by
Anti.
- AuthorPosts
- December 18, 2015 at 7:05 pm #10521
Hi @VlanFx!
Plz add suffix and prefix option so we can test it on broker having diff symbol names
waiting for update
December 18, 2015 at 7:37 pm #10523@gg53: You wrote Please don’t post EA versions here. Read thread instructions. I must admit that I failed to find ‘thread instructions’, all I remember at the moment is this post. Last night I opened the Trading made REALLY Simple: Coder’s Chat to keep information together in one point and remove the clutter from your main thread, keeping it clean. Could you add your instructions to the first post of your thread, so anybody who drops in ‘by accident’ and likes to contribute has a fair chance to meet your quality requirements? I appreciate your attitude regarding the quality of this thread, and like to assist by collecting the clutter. s.
Instruction added to 1st post.
G.
December 18, 2015 at 7:39 pm #10525Also, I’m not absolutly sure that I like the MQH lib reference. I much prefer the iCustom call to the Peak&Trough indicator, because this way any change to it will immediatly affect the EA. If both indicator and EA are referring to the same MQH lib, there shouldn’t be any problem: recompile both, and you’re done. s.
That’s not the situation right now, hence the request to use iCustom refering to the indicator.
G.
December 18, 2015 at 7:41 pm #10526Hi @VlanFx! Plz add suffix and prefix option so we can test it on broker having diff symbol names waiting for update
Already exist from the initial skelleton/template. Please familiarize yoursel with the content of this thread.
G.
December 18, 2015 at 7:43 pm #10527well, as far as I understand, it would be better to to get rid of “iCustom” Calls as possible, I noticed sometimes, during backtesting, iCustom returns wrong and unreliable values
December 18, 2015 at 9:02 pm #10528December 19, 2015 at 7:25 am #10536After some tests/trials: I prefer Buy-Limit @Close +xx, instead of the current Buy-Stop @High+xx. In cases where entry is in mid-bar, entry should be also a Buy-Limit instead of Buy-Stop. Vice versa for Shorts. Advantage: More pips. G.
To open Buy-Limit trade, we need that current price would be below Buy-Limit price. So, the trade can’t be opened after the candle close:
1. Price must go above Buy-Limit open price.
2. Then we can open buy-Limit order and wait while price comes back to it.
Is this right?
Attachments:
You must be logged in to view attached files.December 19, 2015 at 10:30 am #10539[quote quote=10410]After some tests/trials: I prefer Buy-Limit @Close +xx, instead of the current Buy-Stop @High+xx. In cases where entry is in mid-bar, entry should be also a Buy-Limit instead of Buy-Stop. Vice versa for Shorts. Advantage: More pips. G.
To open Buy-Limit trade, we need that current price would be below Buy-Limit price. So, the trade can’t be opened after the candle close: 1. Price must go above Buy-Limit open price. 2. Then we can open buy-Limit order and wait while price comes back to it. Is this right? [/quote]
That’s the idea…
Buy-Limit CAN be opened after bar-close, if you open the Buy-Limit BELOW the Close…
To get more pips, counting on the fact that price will travel down and back up again (in LONG position).
BTW: if you know me, I “refuse” to recognize the bar “Close” term. There is no such thing…
G.
December 19, 2015 at 10:38 am #10540December 19, 2015 at 10:50 am #10541That’s the idea… Buy-Limit CAN be opened after bar-close, if you open the Buy-Limit BELOW the Close… To get more pips, counting on the fact that price will travel down and back up again (in LONG position).
BTW: if you know me, I “refuse” to recognize the bar “Close” term. There is no such thing… G.
Then I will put both Buy-Stop and Buy-Limit..

and yes, you are right there’s no absolute ‘open or close’ in keep moving price value
have a nice weekend brother..
MTH
Intuition, Experiences and Common sense..
http://www.binaryoptionsedge.com/December 19, 2015 at 10:56 am #10542[quote quote=10525][quote quote=10503]Also, I’m not absolutly sure that I like the MQH lib reference. I much prefer the iCustom call to the Peak&Trough indicator, because this way any change to it will immediatly affect the EA.
well, as far as I understand, it would be better to to get rid of “iCustom” Calls as possible, I noticed sometimes, during backtesting, iCustom returns wrong and unreliable values [/quote]
I agree that this should be some future target.
Currently we 3 have versions: an indicator that we can “see” its performance on chart (and needs some improvements), a logic in the EA itself (which is hidden and entries are hard to check), AND and MQH with same limitations.
Hence, until the Peak&Trough functionality is completed and concluded, I prefer calling the iCustom with some visual indicator, so the results and trade entries can be visually checked.
G.
December 19, 2015 at 4:02 pm #10547December 19, 2015 at 6:37 pm #10560Also, 3 or 4 years ago, I found and somtimes rewrote this kind of VSA indys.
I don’t want to clutter this thread, but please be cautious with this ‘Teacher Volume’ Indy. Messages displayed will probably be buggy. Details can be discussed elsewhere if somebody’s interested.
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)
December 20, 2015 at 12:30 am #10564I’m coming back to this:
The problem is that CS can’t be accurately backtested (MT4 backtest consider only current pair currencies), so I suggest we leave CS as a last addition, although I still consider it as major addition to this EA.
And what if we added a feature to our CS (or a script) that dumps CS filter results in a csv file, the EA reads this csv file during backtest and so ‘knows’ when to trade and when not to trade the current symbol?
This is a bit inconvenient, but it would be possible.
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)
December 20, 2015 at 1:38 am #10567I’m coming back to this:
The problem is that CS can’t be accurately backtested (MT4 backtest consider only current pair currencies), so I suggest we leave CS as a last addition, although I still consider it as major addition to this EA.
And what if we added a feature to our CS (or a script) that dumps CS filter results in a csv file, the EA reads this csv file during backtest and so ‘knows’ when to trade and when not to trade the current symbol? This is a bit inconvenient, but it would be possible. s.
It’s possible and logical.
My current “problem” is that the Peak&Trough is not finished yet, and the requested small features and filters, as detailed in the initial template, are still not yet completed.
I want to be methodical in this development and finish what is already detailed, before moving to additional features – while keeping same or better base-line results.
G.
December 20, 2015 at 9:48 am #10569well, well, in my magickal hat, I found something …
the Peak and valley is interesting due to the presence of the function calculate peak
double peak_function(int i,int PeriodPV,int ShiftFast,int DomainPV)
-
This reply was modified 10 years, 6 months ago by
john baag.
Attachments:
You must be logged in to view attached files.December 20, 2015 at 10:22 am #10574well, well, in my magickal hat, I found something …
Hi John,
how do you deal with the repainting issue introduced by using a Hodrick-Prescott filter?
Addendum: I would suggest you convert the script Peak_and_Valley.mq4 into an indicator so it can be verified that it does not repaint. From looking at the code, I would say it repaints heavily.
s.
-
This reply was modified 10 years, 6 months ago by
simplex. Reason: addendum
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)
December 20, 2015 at 11:27 am #10576well, well, in my magickal hat, I found something …
Hi John, how do you deal with the repainting issue introduced by using a Hodrick-Prescott filter? Addendum: I would suggest you convert the script Peak_and_Valley.mq4 into an indicator so it can be verified that it does not repaint. From looking at the code, I would say it repaints heavily. s.
True…
G.
December 20, 2015 at 11:36 am #10577Sorry G.:
My current “problem” is that the Peak&Trough is not finished yet … I want to be methodical in this development …
I did not mean to intervene in your methodical development by proposing new priorities. This is not my job. I had an idea which possibly can help to work around one of the weaknesses of MT4 and threw it in, that’s all.
Last night I followed my own path of methodical development, worked through this thread top down and compiled its most important posts into a document in order to have a concise requirements specification at hand instead of hunting for bits and pieces of information scattered over 200 posts. I did not follow this thread in detail from the beginning, so I considered this useful. Doing this, I stumbled over the old post, had an idea, and did not want it to get lost.
Sorry again, if I failed to meet your quality standards.
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)
December 20, 2015 at 12:52 pm #10587Sorry G.:
My current “problem” is that the Peak&Trough is not finished yet … I want to be methodical in this development …
I did not mean to intervene in your methodical development by proposing new priorities. This is not my job. I had an idea which possibly can help to work around one of the weaknesses of MT4 and threw it in, that’s all. Last night I followed my own path of methodical development, worked through this thread top down and compiled its most important posts into a document in order to have a concise requirements specification at hand instead of hunting for bits and pieces of information scattered over 200 posts. I did not follow this thread in detail from the beginning, so I considered this useful. Doing this, I stumbled over the old post, had an idea, and did not want it to get lost. Sorry again, if I failed to meet your quality standards. s.
This is quite Ok, and all is “forgiven”, especially if it’s YOU….
I’d love to see this DOC, and maybe after compilation with @VlanFx – we’ll make one that suits all, and benfit this community EA.
G.
December 20, 2015 at 1:02 pm #10588Great:
I’d love to see this DOC, and maybe after compilation with @VlanFx – we’ll make one that suits all, and benfit this community EA.
I’ll send you by PM in a few minutes for review.
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)
December 20, 2015 at 3:35 pm #10596well, well, in my magickal hat, I found something …
Hi John, how do you deal with the repainting issue introduced by using a Hodrick-Prescott filter?
Well, bcoz I was the administrator of http://beathespread.com, I have created the Inverse of Hodrick Prescott which does not repaint at all !!, I can refined this one for you.. in on another side, I would be interested to read this DOC too.
December 20, 2015 at 11:18 pm #10612Interesting:
Well, bcoz I was the administrator of http://beathespread.com, I have created the Inverse of Hodrick Prescott which does not repaint at all !
Maybe we could discuss this ‘special’ inverse HP filter in a different thread?
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)
December 20, 2015 at 11:20 pm #10613Hi all,
Came back from the weekend and see great posts

I saw @Lowphat posted in the ‘chat’ thread an indicator that is according to GG53 rules regarding the peak-throughs so I updated the EA. Place the ClearMethod.mq4 inside ‘Indicator’ folder.
Thanks @Lowphat for contributing.
The entry is still at the bar ‘Close’ and places Stops at the Highest/Lowest price of the area, since I don’t understand yet the logic of placing Limit orders. If we want to place BuyLimit order when through changes to peak, then me can not be placing it on top of the through as it is almost always higher than current price… @GG53, can you shed some more light please?
Thanks.
V.
Attachments:
You must be logged in to view attached files.December 20, 2015 at 11:23 pm #10618Here you are:
I would be interested to read this DOC too.
G. approved this by PM, so I’m posting it. Remember: this is nothing more than a quick copy and paste for now!
s.
Attachments:
You must be logged in to view attached files.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)
-
This reply was modified 10 years, 6 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.