power[1,bet)=bet
power(2,bet)=betē=bet*bet
power(3,bet)=bet^3=bet*bet*bet
etc
Printable View
Hi,
Great indicator Igorad - thank you.
I have an idea for trading using all the different types of MA..
Using color_mode=1 on each of the different MAs (same ma_period=60 in this case) on 1 chart, you get this;
Attachment 2914
- this is EURUSD 15m chart (also has the AllAverageCandles on).
The Yellow boxes show areas where most of the MAs start turning.... somewhere in the box is the consensus view
and this is where we could trade in that direction i.e. where the majority of the MAs turn the same colour
Just an initial idea for further investigation.
Igorad - I'm wondering if there is some way to code a consensus mt4 indicator - using the UpTrend/DnTrend from the AllAverages - to make a histogram separate window indicator - showing the number of up/down MAs ?
This is the template of the screenshot in case it's any use to anyone;
Attachment 2915
Cheers
Padnoter
Hi padnoter,
Thanks for the idea.
I think - it may be particular case for EURUSD M5 :
Attachment 2918
but for general case - it may be difficult to catch the reversal - too many indicators on the chart, for example :
Attachment 2919
still early days, but I think there may be something in it - for entries... exits & SLs would need to be handled differently.
(my bad before - it was a 15m eurusd chart not a 5m - have updated original post)
I knocked up a quick histogram by butchering(sorry Igorad) the AllAverages just to give an idea of what I was thinking.
Here is the daily... & I've marked +15 / -15 as possible points of entry? There are 27 moving averages, is +15/-12 a good consensus? or maybe the slope of the histogram gives a better entry??
Attachment 2922
(this indi still not quite right - there are 27 MAs but some return 0 and won't get counted for some reason?? eg TEMA.. no idea!
FIXED - see posts below)
maybe some of the MAs should be removed (any that repaint, or any particularly slow/smooth movings ones).... do any repaint? I'm guessing the T3 basic might?
and of course a different MA value... 60 was just chosen at random really
it's an experiment.. work in progress
Yes, this idea may work - I just turned this chart from M15 to H4 and D1 timeframe and you can see :
H4
Attachment 2924
D1
Attachment 2925
======
I mean - for lower timeframe than H4 - it will looks like a scalping sorry. But for H4 and D1 - we can get good entry. The only problem is where to exit. Because "exit on opposite signal" will not work in this case.
Great, glad you can see something too..
Fixed the indi (it's still messy in the code & am sure Igorad could do a better job, if interested)
Attachment 2929
I've also tried two different periods in the indi on same chart - 60 for main trend - entries in that direction. Plus a lower period (7) - to potentially show pullbacks for adding to position and/or re-entry for longer trends.
Here are Daily/H4/M15 charts... I've marked up a couple of examples on daily to show what I mean about pullback re-entries.
Attachment 2926
Attachment 2927
Attachment 2928
As you say, where to exit? Also where to set stoploss? One of this forum's trailing stops maybe, but which one - there are so many!
Question? Do you know how many of the 27 MAs repaint (and which ones?)
I only found this website yesterday, so have not had any chance to look at data & MAs in realtime yet
some examples on 15m - scalp
Attachment 2931
hope the ideas are clear in picture. bars are small to show more - you need to look in MT4 to line up entry indicator & bars for a clearer idea of winners & losers
maybe cherry pick with a higher consensus(60) line - it's set to 15/-15... 20/25 or more might be better.
Here's the template btw;
Attachment 2932
seems to work fairly well on all timeframes... but only created this w/e... so trade it on demo!!
Hi padnoter,
Please take a look at my version of the AllAveragesConsensus with ability to plot arrows on the main chart.
Attachment 2941Code:extern int TimeFrame = 0; //TimeFrame in min
extern int Price = 0; //Price = 0...10 (see List of Prices)
extern int MA_Period = 20; //Period of smoothing
extern int Consensus_Level = 15; //Consensus Level
extern string alerts = "--- Alerts & E-Mails ---";
extern int AlertMode = 0;
extern int SoundsNumber = 5; //Number of sounds after Signal
extern int SoundsPause = 5; //Pause in sec between sounds
extern string UpSound = "alert.wav";
extern string DnSound = "alert2.wav";
extern int EmailMode = 0; //0-on,1-off
extern int EmailsNumber = 1; //0-on,1-off
extern string arrows = "--- Arrows Settings ---";
extern int ArrowsMode = 1; //0-off,1-on
extern int ArrowSize = 11;
extern string ArrowFontName = "Wingdings";
extern int ArrowBuyCode = 233;
extern int ArrowSellCode = 234;
extern color UpArrowColor = DeepSkyBlue;
extern color DnArrowColor = LightCoral;
extern string UniqueName = "AllAvgCons";
Regards,
Igor
looks great Igorad... fixes some problems I've just seen in my hacked version - and your code/logic is much neater
many thanks!
also - i've been testing on the 1m to check for repainting... there is none in Igorad's version that I've seen... superb! :(happy):
now let's carry on and see if we can make a system that makes some pips from it
Hi Igorad,
Is it possible to add a parameter to limit the number of bars processed?
When switching between timeframes & pairs it is a little slow - with all the math calcs
i.e. so I can just calc the indi for the last 300 bars or so... that type of thing?
Cheers
Padnoter
perfect - thank you.... i can now swap pairs & timeframes quickly
Hi Zilliq and Sohocool,
Am very pleased to see you on the forum. I have been thinking am the only one user of the ProRealtime platform. It is excellent as a charting package.
I would interested in making contact with you both and sharing best practice, indicators, EA etc. Are there many users for the PRT? If so may be we could start a thread here about matters related to PRT. Would Newdigital disagree?
How very nice.
Jozo
I agree about thread of course
Hi Jozo ,
As Newdigital agree ,you can open a PRT thread.
I will post regularly indicators ..
I don 't write well enough English to animate this thread .
Regards.
Sohocool
That is great Newdigital;
Sohocool don't worry about English. No one is here to pick on that.
I have been around the forum tabs but cannot see how to start a new thread. Newdigital can you help? It would probably be titled "ProReatTime Users - " Ideas & Experiences Exchange"
Thanks all, lets get this going!
Jozo
How to open new thread?
Go to the main page http://newdigital-world.com/forum.php - and go to any section you want to open the thread to (for example - this one http://newdigital-world.com/general-discussion/ ), scroll page down and press the button "Post New Thread"
Hi jozo,
I'm agree too.
What is sad, is that there isn't a lot of good coder on PRT (3-4 in the world I think, with Hk-lisse was one of the best), who is for me a good plateform with some default of course (MTF doesn't exist on PRT for example)
If there is a thread I will participate. Sohocool already participate on his blog and me on one of the biggest french forum, easy to find)
have a nice day and merry christmas
Zilliq
I opened the thread here : ProRealTime Users - Ideas & Experiences Exchange
Hi tradewiser,
It was created in December last year by Igorad for premium section - look at this post.
Hi newdigital,
I already found allaverages for prorealtime and I just made a new keltner indicator with that.
Thank you for your help.
Hi,
Please check out the updated AllAverages indicator for the new MT4(bulid 600).
Regards,
Igor
Hi Padnoter and all,
I have found the CCI (10) helpful as an exit indicator for the AllAverages Consensus Indicator. Exit long when CCI crosses below 0 and vice versa. Any other valuable exit strategies that have come up?
Thank you all and Igor for the contribution toward the AllAverages consensus.
It would be good to get a version for PRT.
Jozo
Good night all
Hello igorad
I have a request for you:
Could create a version with Ribbon, with the crossing of the new indicator AllAverages_v3.2.mq4.
Thank you very much in advance.
A big hug.
FHTrading.
Hi Guys,
Hope you're fine,
Does one of you (Igor probably), have the Easy Language Code of the NonlagMa because I would create it on prorealtime, but I haven't succeed yet with the MT4 code :s:
Thanks a lot and have a nice sunday :(grin):
Zilliq
Dear Igorad, an Histo version of AllAverages 3.2 would be great too, if you pleased (when slope up, 1 color, when slope down, another color). Thanks a lot :)
Nevermind, it's ok also for this one. I made one working. I should try before asking. Sorry about that. Regards.
Attachment 8164
Igorad,
Is it possible to add an option to the AllAverages indicator so that the "period" is a function of the cycleperiod indicator?
thanks,
jim
Hi Igorad, could you help? The AllAverages_3.2 is not working on my charts!
Excuse me. Igor
I use this AllAverages_v3.2 indi.
But mt4 show me that message " array out of range".
Could you check it for me.
Thanks for your hard work.
Regards.
Hi, newdigitalHi, newdigital.
Yes, I use the version you mention about and my mt4 version is 646
Here's the pics when I run this indi that mt4 showed to me.
Hope this will help you to understand my issue.
Attachment 9700Attachment 9701