Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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;
Can you help answer these questions from other members on NexusFi?
you need to trigger the alert together with the condition that is fulfilled "when the fractal paints".
You can use the below pseudy code, where you have to fill in the actual variables and codes of cause.
This will give the code the ability to trigger alerts and you just have to enable the alerts in the study properties to let Tradestation display them (or play a sound, send emails etc.).