Need help creating a chaos signal

Questions about MultiCharts and user contributed studies.
fernando43611
Posts: 33
Joined: 12 Mar 2015
Has thanked: 4 times

Need help creating a chaos signal

Postby fernando43611 » 25 Sep 2015

Hi, I need help to create a signal for automated trading using Bill Williams indicators, the conditions are:

For long entry:
1. Price must be above the alligator red line
2. Chaos awesome oscillator in green
3. Chaos AC oscillator in green
4. Entry level will be one tick above the latest fractal

For short:
1. Price must be below the alligator red line
2. Chaos awesome oscillator in red
3.Chaos AC oscillator in red
4. Entry level will be one tick below the latest fractal

If more specifications needed please ask. Thank you!

*Im attaching an image with an example of long and short entries in the same chart, look at the red and blue arrows
Attachments
fractaltrade.png
Fractal Trade
(36.65 KiB) Downloaded 576 times

khalaad
Posts: 323
Joined: 07 Jan 2007
Location: Lahore, Pakistan
Has thanked: 64 times
Been thanked: 57 times

Re: Need help creating a chaos signal

Postby khalaad » 25 Sep 2015

Please look up the Knowledgebase here. If you like what you find, you should be one step closer to what you seek.

However, I would like to add an unsolicited comment: Bill Williams stuff is more of a rule-based discretionary thing, and automation may not be the best way to go!

Khalid

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Need help creating a chaos signal

Postby Henry MultiСharts » 30 Sep 2015

Hello fernando43611,

Please contact us directly if you are interested in custom programming services.

maxmax68
Posts: 163
Joined: 20 Nov 2012
Has thanked: 55 times
Been thanked: 48 times

Re: Need help creating a chaos signal

Postby maxmax68 » 30 Sep 2015

Hello fernando43611,
like most of non professional traders, I'm always in search of new trading ideas.
So I tried to test your suggestions with the signal I attach.
I have to agree with Khalid that the results are not encouraging.
Regards
Massimo

Code: Select all

//
// By Massimo Rizzi 30.09.2015
//
// Only for backtest !!!

Inputs:
FractalStrength(2),
ChaosAlligatorTeeth(8),
ChaosAlligatorTeethOffset(5),
Price((High+Low)/2),
TickValue(5);


Vars:
FractalHi(-1),
FractalLo(-1),
ChaosAlligatorRedLine(0),
ChaosAwesome(0),
ChaosAC(0),
LongCondition(false),
ShortCondition(false);

//
// Calculates ours Chaos Alligator Values ...
//

FractalHi=swinghigh(1,h,FractalStrength,80);
FractalLo=swinglow(1,l,FractalStrength,80);
ChaosAlligatorRedLine=Average(Price,ChaosAlligatorTeeth)[ChaosAlligatorTeethOffset];
ChaosAwesome=Average(Price,5)-Average(Price,34);
ChaosAC=ChaosAwesome-Average(ChaosAwesome,5);

LongCondition = Close>ChaosAlligatorRedLine AND ChaosAwesome>ChaosAwesome[1] AND ChaosAC>ChaosAC[1];
ShortCondition = Close<ChaosAlligatorRedLine AND ChaosAwesome<ChaosAwesome[1] AND ChaosAC<ChaosAC[1];

//
// Trading routine
//

if FractalHi>-1 AND FractalLo>-1 then begin

if marketposition<1 AND LongCondition then buy next bar at FractalHi+TickValue stop;
if marketposition>-1 AND ShortCondition then sellshort next bar at FractalLo-TickValue stop;

end;
setexitonclose;


Return to “MultiCharts”