PDA

View Full Version : Need Big Help on Indicator Coding



uri
03:04,
Hi.

I need some massive help programming an indior. It's Just like the Cobraforex egy (NOT COBRA THV).

I've been back testing this and found it profitable with a top win:loss ratio and a high reward:risk ratio so I thought I'd share it even though it is all over the internet. I like to swing trade on the daily charts, therefore I need an email alert set up when all requirements are fulfilled to input (if that's possible).

I've attached a template in addition to a flow chart phrase document stating the conditions for entry. I am after something that will alert and send an email when all requirements on the flow chart have been fulfilled.

Cheers!
https://forexintuitive.com/attachments/15190294371383539163.tpl
https://forexintuitive.com/attachments/1519029440767389490.doc
https://forexintuitive.com/attachments/15190294451659986628.pdf

jmartin92
16:27,
Sounds good. Crodzilla might be ready to provide some guidelines if you ask him, if he won't offer the source code.

CIAMBRU
17:48,
I didn´t ask crodzilla, this is my own creation (my very first dashboard).

How to use the dashboard

- Copy Cobra_3 and Cobra_Dashboard_V1 into the experts/indiors folder
and restart Mt4.

- Just Cobra_Dashboard_V1 has to be attached to a chart
(I added a template for advantage )

- Choose pairs along with timeframes and Alerts in possessions menu

- When attached to the very first time, it must check all the timeframes and pairs. It requires time.
Depending upon your PC, it may seem like Mt4 freezes, don´t worry, it
will unfreeze.

- Grey Cells mean that there isn´t enough historical data for that timeframe of this pair.
Option: Open a new chart of this pair and click on the lost timeframe
and force Mt4 to find historical data from your broker.

One easy method: left-click inside the chart-frame and then hold and transfer the mouse-pointer to the ideal side. This forces a download of history data
from your broker and shortly the grey cell is going to be filled with an arrow.

- You are able to choose different pairs from the input properties menu and you can delete pair-names which will result in grey cells for that row.

Https://forexintuitive.com/attachments/1529695241sds1128924473.png

How to browse the Cobra_Dashboard

- Each cell shows the last arrow of this pair and interval.
The arrow remains until the sign varies.

- Every sign change will give an Alert (Popup window using sound).
The Popup window will demonstrate the pair name and interval.
As usual this a popup window disappears only when you click on OK.
The text of this alert can be found from the Experts-tab log too.

- Choose the Alerts that you would like
Popup, email


Update: Cobra_Dashboard_V1 uploaded
- entirely customizable
choose pairs
choose timeframes (periods)
- will just demonstrate the chosen pairs and periods

Cobra_2 is not needed anymore.
Cobra_3 has to be in experts/indiors folder
You can attach Cobra_3 with no dash on the pair(s) you exchange.
https://forexintuitive.com/attachments/15296952411749913870.tpl
https://forexintuitive.com/attachments/1529695244323218685.ex4
https://forexintuitive.com/attachments/1529695247359531352.ex4

jmartin92
19:09,
Very trendy fxtr51. Congratulations on your first dash. I'm testing it now.

BTW 73 pips to the USDJPY commerce from a few days ago.

CIAMBRU
20:29,
Could be nise be able to choose the time frames to show for the dashboard... Totally customizable dash included.
Pick pairs and timeframes and the dash is only going to compute and
display the selected items.

CIAMBRU
21:50,
After a while the Edit button disappears, therefore I needed to post the most recent edition of the indior and dash here.

Modifiion: The nagging alert at initialization is eliminated.
https://forexintuitive.com/attachments/15296952501801141866.ex4
https://forexintuitive.com/attachments/15296952521424326069.1
https://forexintuitive.com/attachments/1529695254494991763.tpl

jmartin92
23:11,
Thanks for the update. I have had mixed results with this utilizing a TP/SL as the short term fad bands' line and taking the transactions as they develop. Anybody come up with a solid trading strategy for this?

CIAMBRU
00:32,
Thanks for the update. I've had mixed results for this utilizing a and particular taking the transactions as they come up. Anybody think of a trading plan for this? The recommended SL is another side of the blue band, not the midline.

And as standard a trading platform can't be judged after 1 week.
Either it needs to be backtested for a couple of years or forward tested a couple of months.

I've seen setups on the historic charts on many pairs that have
a Risk/Reward of 1: 5 and greater.
Such good moves with pullbacks into the blue rings but not closing
beyond give two or three additional legitimate setups where you are able to increase the
original position and such moves result in enormous profits.

In the event the ordinary win/loss ratio is just 50%, such moves - and they happen - will guarantee good profits, no doubt about that.

Ok, maybe you can find indiors or additional rules which can filter more bad transactions and provide more profitable entries, but finding them requires perform
and experience.

Some find such additional profit enhancers and keep silent and you will never discover it shared....
Others are going to share them.... Let us hope for the egory.

It's the old story about there isn't any free lunch and this.

I've done my part and invested many hours coding the indiors.
A professional coder would have done it much much faster but none
appeared here and assisted. Why should they ?

They earn money with coding and when a potential profitable egy
is shared like this one, they quietly code an indior and EA and test it
and use it for themselves to earn a living.

My 2 cents. https://forexintuitive.com/attachments/1529695232.png

CaroOol
01:52,
Hi, can any one help, as I'm afraid I don't have any experience of progrmming!
I wish to choose the AMA indior and load it onto IG Index's advance charts as a custom indior.
I have loaded the code (copy below) to the founder, then gone to verify it, the founder is asking to define variable P (query box screen grab in .doc attached along with coding and desired MT4 settings) I also have attached another AMA MT4 file, if it is a lot easier to alter that?

Fixing this may save me running two charting packages, which would be great!
Paul


ONCE ama = UNDEFINED

signal = ABS(MOMENTUM)
noise = SUMMATION(ABS(MOMENTUM[1]))

IF noisegt;0 THEN
er = signal / sound
ELSE
er=1
ENDIF

fastsc = 2 / (2 1)
slowsc = 2 / (30 1)

factor = SQUARE(er * (fastsc - slowsc) slowsc)

IF BARINDEX = p THEN
ama = CLOSE
ELSIF BARINDEX gt; p THEN
ama = ama factor * (CLOSE - ama)
ENDIF

RETURN ama
https://forexintuitive.com/attachments/15296952561043198375.mq4
https://forexintuitive.com/attachments/15296952591671479437.doc

CIAMBRU
03:13,
Harcourt,
this thread is for the Cobra system just.

What relevance does the AMA indior have in the Cobra system?

If not, please start a new thread to your AMA indior you request.
Maybe somebody will help you.

Shiodesign
04:34,
The advocated SL is the other aspect of the blue group, not the midline.

And as usual a trading platform can't be judged after 1 week.
Either it needs to be backtested for a few years or forward tested a few months.

I've seen hinges on the historic charts on many pairs which have
a Risk/Reward of 1: 5 and greater.
Such good moves with pullbacks to the blue bands but not shutting
beyond give 2 or 3 additional valid setups where you can increase the
original position and such moves lead to enormous profits.

If the ordinary win/loss ratio is... FXtr51... I just wanted to say thanks for all the work you've done with this! It's much appreciated.

Sarck
05:55,
They make money with programming and when a potential profitable egy
is shared like this onethey silently code an indior and EA and examine it
and utilize it for themselves to earn a living.

My 2 cents. Https://forexintuitive.com/attachments/1529695232.png Use it for themeselves and sell it too I guess https://forexintuitive.com/attachments/1529695232.png

Excellent job, FXTR51 and I expect it will provide you (and many others too) the desired results.

Incidentally (please believe I have no clue at all about coding and also I had not time yet to look at your indi live on the chart) I had another thought regarding the EA:

You created an excellent indior for the entry candles.

Would it be possible to generate an EA which just look if the arrow appears and in this case automatically by the open of the next bar it opens into a trade using a lot dimensions calculated considering the distance of the price from the lower(or higher) blue ring of the 3 and making that distance in pips for example 2% of the actual account balance?

Of course then the closing (also of all previous added trades, if any) according to TS ought to be as soon as a candle closes over the blue ring (down or up, according to TS, you know exactly what I mean)

In the beginning, to make things not too preoccupied, it could be with no tracking SL (or simply to BE as soon as the profit in pips = SL pips from entrance )

I'd be interested in your opinion.

Thanks again a lot for the Indis and that I will attempt to follow along with the forward testing too (as far as my slave job https://forexintuitive.com/attachments/1529695232.png lets )


https://forexintuitive.com/attachments/1529695233.png

CIAMBRU
07:16,
Thanks to those who thanked me for the indior and dashboard. Https://forexintuitive.com/attachments/1529695233.png

On first sight the Cobra System looks promising but I know from numerous other good looking trading egies which went into the recycle bin
following an EA has been coded and backtests were conducted.

The exact same appears to be the case .
I coded the Cobra_EA and here is a backtest on EURUSD H1 for 2011
on Alpari broker.
Https://forexintuitive.com/attachments/1529695261sds192568610.png

The EA has everything that's in the manual.
1. ADX Filter
2. MA-bands Filter
3. Exit on closed candle on different side of blue bands
4. Move SL each 10 Pips in profit until SL = OpenPrice of trade.
5. No transactions on Friday

Please post your backtests on different pairs so we can see whether the results are as bad as on EU.
https://forexintuitive.com/attachments/1529695262325534970.ex4

Rafis.G
08:36,
Thanks to those who thanked me for the indior and dashboard. Https://forexintuitive.com/attachments/1529695233.png

On first sight that the Cobra System looks promising but I know from numerous other great looking trading egies that went to the recycle bin
after an EA was coded and backtests were conducted.

The same appears to be the case .
I coded the Cobra_EA and Here's a backtest on EURUSD H1 for 2011
on Alpari broker.
Https://forexintuitive.com/attachments/1529695264sds516716769.png

The EA has all that is in the manual.
1. ADX Filter
2. MA-bands Filter
3. Exit on closed candle on different side of blue bands
4.... FXtr51, thank you ! You've been going a long way in order to simple things to conduct cobra system to all of us!
But now, may I talk about a couple of things that I've been understanding about this system and may be they'll be great for your EA.

1) ADX gt;= 22 on the 1st signal candle (the one that opens at the MA buffer and shuts out from it) and ADX on 2nd signal candle gt; ADX on 1st signal candle. (was I clear ? Otherwise, please allow me to know!)

2) Getting out of the trade: I love to do the next to get from most of my transactions:
TP1 = dimensions of that's commerce SL
TP2 = TP1 dimensions of that's commerce SL
TP3 = TP2 dimensions of that's commerce SL
etc.. .
What I do is: When price hits TP1, I alter my SL to BE.
When price hits TP2, I shift my SL into TP1
when price hits TP3, I shift my SL into TP2
and so on, until I get stoped.
It's a normal means of tralling I guess, just a little differente in the trailling MT4 offers us.
Additionally, a number of my egies involve closing HALF of the trade when I struck TP1.

I didn`t try this methods yet on Cobra System, but the may help.

jmartin92
09:57,
Thanks to all who thanked me for the indior and dash. Https://forexintuitive.com/attachments/1529695233.png

The exact same appears to be the situation here. Confirming my manual backtests and also describing why the initial creator never created the EA and finally shut down the site. Thanks.

missariadna
11:18,
Dear fxtr51, Great work your doing with your EA despite unsatisfactory results.
Lots of valueable tools being volunteed by associates also. If the EA isn't succeeding, then how are the manual transactions doing.

cristian
12:39,
I've been trading the Cobra System on the M5 chart for about a week with quite good outcomes. I've been entering on the first close above the 12 ema channel. Could someone adapt the indior to choose the initial break and near the 12ema channel? Thank you in advance.

cristian
13:59,
This is the entry I'd request the indior signal.
https://forexintuitive.com/attachments/15296952651364889200.png

CIAMBRU
15:20,
Here is the entrance I would request the indior signal. Rotunda, should the indior still check the orange bands or
forget about them and only alert every time a bar closes above or below the outer ring of 12 MA?

cristian
16:41,
Thank you for response. All parameters arrangement, first break and close past the 72 and 12 stations. Thanks
https://forexintuitive.com/attachments/15296952671942140709.png

CIAMBRU
18:02,
Thank You for Response. All parameters agreement, close and first break beyond the 12 and 72 channels. Thanks rotunda, I need more exact rules, otherwise you'll receive hundreds of arrows.

Please list all rules.
Notably: in which the candles must have their Open ( or Low/High ).

When blue bands are separated from orange bands, most candles close above blue bands and orange bands in an uptrend and vice versa at a downtrend.
Your chart will be littered with arrows.

cristian
19:22,
Extended setup; Price is above 72 channel. Price breaks and closes above the 12 channel. The candle which breaks and closes above the 12 station, I call the signal candle. When price breaks this candle I input. Short Setup; Price is below the 72 channel. Price breaks and closes below the 12 channel. The candle which breaks and closes below the 12 station, I call the signal candle. When price breaks down the signal candle, going lower, I input short. Forget about the ADX ageement. I request that an alert revealing the signal candle.
https://forexintuitive.com/attachments/1529695164103223108.png

CIAMBRU
20:43,
Long installation; Price is above 72 channel. Price breaks and closes above the 12 channel. The candle that closes and breaks above the 12 channel, I call the sign candle. When price breaks this candle I input long. Short Installation; Price is below the 72 channel. Price breaks and closes below the 12 channel. The candle that closes and breaks below the 12 channel, I call the sign candle. When price breaks the sign candle I enter brief. Forget about the ADX ageement. I request an alert... Okay. Done.

One thing I typed differently:
You will find candles which already opened and closed out of blue station
but opened within the orange channel.
Https://forexintuitive.com/attachments/1529695165sds1988674249.png
The candle previous to the sign candle started within the blue channel though.

From the attached variation such candles are included as valid signal candles.
Would you like that?

Or do you need only the pure rule that the sign candle must start within the blue station
to be valid?
https://forexintuitive.com/attachments/152969516627270111.ex4

cristian
22:04,
That was just what I wanted. Thank you for being patient with me. Trading on the M5 is very rewarding with this method. This alert is likely to make entries simpler. RH

cristian
23:25,
signal on gj was quite profitable. Need to watch for signals at lows and highs of this session.
https://forexintuitive.com/attachments/15296951681364976505.png

JavMart91
00:46,
Hi Rotunda,
I have been following your conversation as I am also trading this system today.
Shouldn't the price be outdoors both orange and green zones?
If the entry candle is out Blue zone but nevertheless partially or fully inside the orange zone it's not legitimate entry - unless you are ignoring this for a reason today.

CIAMBRU
02:06,
Hi Rotunda,
I have been following your conversation as I'm also trading this method today.
Shouldn't the price be outside both orange and orange zones?
When the entrance candle is out Blue zone but nevertheless partly or fully within the orange zone it is not legitimate entrance - unless you are ignoring this for a reason today. Anu, he made his own rules.
Forget about ADX and change candle and candle 1 and candle2.
Only 1 candle is checked for easy conditions.

Rotunda,
where do you place your SL?

And do you use other filters to avoid whipsaws?

cristian
03:27,
Stop Loss is contrary channel from entry. Partial stochastic is used by me . Always be aware of lows and highs of the current session.

JavMart91
04:48,
Anu, he left his own principles.
Forget about ADX and reversal candle and candle 1 and candle2.
Just 1 candle is assessed for easy ailments.

Rotunda,
where do you place your SL?

And do you use different filters to avoid whipsaws? Thank you fxtr51.
I genuinely feel this is a fantastic system which we're able to write an EA for.
I suppose you have given that up now coz you're occupied with other work. I prepared a programmer a document.
As you already have done some work, should you ever have any free time allow me to know and I'll work with you to develop, try to optimize it.

cristian
06:09,
AU brief had 4 entries possible. Wonderful method. Consistently with trend.
https://forexintuitive.com/attachments/15296951712121452659.png

cristian
07:29,
https://forexintuitive.com/attachments/1529695171sds1129045454.png

cristian
08:50,
Three transactions following NY open this morning.
https://forexintuitive.com/attachments/15296951741737716627.png

t0ni
10:11,
Rotunda are you using the Cobra rotunda .ex4 to generate the sign candle? The trade is put at this high/low of this sign candle's break. Using this on M5?

Thanks,

Bobby R.

cristian
11:32,
Hi Bobby, yes, that's the entry. Fxtr51 was kind enough to write the indior, and it works. Signal keeps you and has helped me tremendously.

cristian
12:52,
Entries about the 60/4 method.
https://forexintuitive.com/attachments/15296951751685143933.png

cristian
14:13,
Entries about the 60/4 method. When price is above the 60 ema, I only search for trades. When price is under the 60 ema, I only search for trades. Signal is the initial break and close above the 4ema that is above the 60ema for long trades. Trades that are short are the initial break and close under the 4ema that is below the 60ema. Thank you for the quick response. I will post a chart on where the signals came out on the indior you sent. On where I like them to be, I will mark the candles.

cristian
15:34,
60/4 entries.
https://forexintuitive.com/attachments/15296951781538217874.png

CIAMBRU
16:55,
Entries about the 60/4 method. When price is above the 60 ema, I look for trades. When price is below the 60 ema, I look for short trades. Signal is close and the break above the 4ema that is above the 60ema for long trades. Short trades are close and the break below the 4ema that is below the 60ema. Thank you for the quick response. I shall post a chart on where the signs came out. where I want them to be, I'll mark arrows on the candles. Here is the indior.
https://forexintuitive.com/attachments/1529695180436861067.ex4

cristian
18:16,
Thanks again.
https://forexintuitive.com/attachments/152969518678992066.zip

JavMart91
19:36,
Thanks again. Hello Rotunda,
Thus, are you currently incorporating the 60/4 indior into the Cobra template along with also the entry is currently simply with the 60/4 arrow inline using the Stochastic overbought/sold state?
First cobra 1,2 candle rule and ADX are now not taken into account.
You merely want the PA to break out of and close out both orange /blue zones however by employing the new 60/4 ema rule arrow that you seem to achieve it anyhow automatically??

cristian
20:57,
These are two seperate procedures. Implementing the 60/4 indie is not sensible.

JavMart91
22:18,
oh! Ok. https://forexintuitive.com/attachments/1529695123.png

lorenasalvatoremikaelson
23:39,
This is a effective entrance and exit approach. Thanks for sharing.


First draft.

Please allow me to know what ought to be modified.
Edit: Modified a few things. Please utilize Cobra_1.1 and then delete Cobra.

Inputs:

ShowChartAlerts = true; // true or false
AlertEmailSubject =; // should you insert no text, no email will be sent

AlertTextCrossUp = Cobra cross UP; // pick your own text

AlertTextCrossDown = Cobra cross DOWN; // pick your own text

cristinasmurf
00:59,
Hello Everyone,

Please kindly assist me with this indior. I would like to add alert I've tried but keep getting alert.

I would like it to display alert when

I will appreciate if someone can assist with this.


Due
https://forexintuitive.com/attachments/15296951301166469313.mq4
https://forexintuitive.com/discussion-trading/12-euro-triangle-sideways.html

AlbusD
02:20,
Hello traders,

any one have yesterday DAY OPEN CLOSE HIGH LOW, horizonal line indior, please post here

BeyondTheInvisible
03:41,
Hello Everybody,

I need a help from anyone who Understand How to code an indior

Basically, I am looking to back test a egy, for which I Want a custom indior

My egy is based on Blending Semafor indior and candlestick patterns to create entry points


Would greatly appreciate response from anyone who can help me with This Particular


Regards,

Praveen

Andrei187
05:02,
I just came across this thread concerning the Forex Cobra System and though it's no longer active I wished to thank fxtr51 he put into the indiors/templates and the Cobra EA! What a fantastic man!

Cheers mate and will Life reward you for your kindness.

Ronald

Andrei187
06:22,
quote [...] If you examine the case in page 19 of the guide, you see that a pullback and when price comes out of the blue ring, a legitimate entry is clarified. Here is a screenshot with such entries based on the guide: image Really, the case on page 19 of the guide indicates a red arrow closing outside (below) the blue band before the legitimate entry occurred. In your screenshot there's a mixture of entrance signs, appearing after an exit sign or without a forgoing exit sign, if I'm not mistaken... It may be useful when the indior would indicate the exits too.

In my view the most fascinating entry signs happen straight after the grim'wave' (or at least two of the grim lines) crosses the orange tide, followed by price cutting both the orange and blue waves. Following that, it is still worth to watch after more or one exits for entrance signs, but the'fresh' signals have my preference. This is obvious, I figure, because who does not like to get in on transactions at the beginning of tendencies. Remember , the Forex Cobra System was put up to ch'mini trends': The basic idea behind the system, would be to exploit the time frames and trade little tendencies which wouldn't normally be recognized (or don#8217;t really exist) on the larger time frames. (page 7 of the manual).

Also, although it's fine to trade distinct time frames, this system relies on the 1 hour time frame: But remember this is a short term trending system, therefore when I say we just trade in the direction of the trend, I suggest we trade in the direction the market has been going within the last 3 times, broken down over 72 hours on the 1 hour charts. We use a 72 interval Moving Average line (MA) as a guide to inform us the management of the current short-term trend. A 72 moving average line is merely a line which tells us the average direction of the market over the last 72 candles (in our case the last 72 hours since each of our candles is 1 hour ). (page 11).

Really cannot thank fxtr51 enough for making some nice and helpful indiors out there for everyone to use at no cost! Bless you guy!

Ronald