|
Round Rock/Texas
Experience: Intermediate
Platform: Sierra Chart
Broker: AMP & CQG
Trading: ES, CL, NQ
Posts: 3 since Aug 2016
Thanks Given: 5
Thanks Received: 1
|
Below is the code for a fractal indicator. Unfortunately, when the fractal paints there is no audio. Is there anyone out there that could take a look at this and possibly add the ability to add an audio alert. Much appreciated!
INPUT: PtsInTic(1), TicExpnd(1);
VAR : UpHump(FALSE), DownHump(FALSE), Expansion(0), Move(0);
UpHump = UpFractal = 1;
DownHump = DownFractal = 1;
IF TicExpnd >= MinimumMove THEN
Move = TicExpnd
ELSE
Move = MinimumMove;
Expansion = Move * PtsInTic;
IF UpHump THEN
BEGIN
IF H[2] >= H[3] AND H[2] > H[4] THEN Plot1[2](HIGH[2] + Expansion Points,"UpHump");
IF H[2] = H[3] AND H[3] = H[4] THEN Plot1[2](HIGH[2] + Expansion Points,"UpHump");
IF H[2] > H[3] AND H[2] = H[4] THEN Plot1[2](HIGH[2] + Expansion Points,"UpHump");
IF H[2] = H[3] AND H[3] = H[4] AND H[4] = H[5] THEN Plot1[2](HIGH[2] + Expansion Points,"UpHump");
IF H[2] = H[3] AND H[3] = H[4] AND H[4] = H[5] AND H[5] = H[6] THEN Plot1[2](HIGH[2] + Expansion Points,"UpHump");
END;
IF DownHump THEN
BEGIN
IF L[2] <= L[3] AND L[2] < L[4] THEN Plot2[2](LOW[2] - Expansion Points,"DwnHump");
IF L[2] = L[3] AND L[3] = L[4] THEN Plot2[2](LOW[2] - Expansion Points,"DwnHump");
IF L[2] < L[3] AND L[2] = L[4] THEN Plot2[2](LOW[2] - Expansion Points,"DwnHump");
IF L[2] = L[3] AND L[3] = L[4] AND L[4] = L[5] THEN Plot2[2](LOW[2] - Expansion Points,"DwnHump");
IF L[2] = L[3] AND L[3] = L[4] AND L[4] = L[5] AND L[5] = L[6] THEN Plot2[2](LOW[2] - Expansion Points,"DwnHump");
END;
|