| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Alerts in Tradestation Is it possible to set an alert to fire continuously but only on the first bar? So i have a list of variables like this if ADXValue > ADXValue[1] Then Alert ("ready"); this will fire continuoulsy but i only want this to happen on the first bar if they miss that i dont want an alert!! Thanks | ||
| |
|
| | #2 | ||
![]() | Re: Alerts in Tradestation Quote:
Cheers Blu-Ray
__________________ “ Search is the ultimate expression of the power of the individual, using a computer, looking at the world, and finding exactly what they want ” – Eric Schmidt, Google | ||
| |
|
| | #3 | ||
![]() | Re: Alerts in Tradestation if you write out your thoughts one action at a time, if you write out your action ONE LINE at a time, in no time you will have your codes worked out. | ||
| |
|
| The Following User Says Thank You to Tams For This Useful Post: | ||
Charlton (08-24-2009) | ||
| | #4 | ||
![]() | Re: Alerts in Tradestation Last edited by Tams; 08-21-2009 at 07:59 AM. | ||
| |
|
| | #5 | ||
![]() | Re: Alerts in Tradestation ![]() Really i only want an alert if the candle closes below here and do not want an alert if i missed the first candle. So if i was to brin up this chart and the line was white for 2 candles already i dont want an alert! Code: Inputs: price(Close), length(9),
zeroLine(21), zeroVisible(false),
upColour(Blue), downColour(White), colourDeltaBar(1);
Value1 = hull(price, length);
Plot1(Value1,"hull");
If ZeroVisible = true then
Plot3(zeroLine, "Zero");
if (Value1 > Value1[1]) then Alert("Long");
if (Value1 < Value1[1]) then Alert("Short");
{ Color criteria }
if (Value1 > Value1[1]) then
SetPlotColor[colourDeltaBar](1, upColour)
else if (Value1 < Value1[1]) then
SetPlotColor[colourDeltaBar](1, downColour);
end; | ||
| |
|
| | #6 | ||
![]() Status: Educational Partner Join Date: Nov 2007 Location: Seattle, WA Posts: 165 Thanks: 8
Thanked 156 Times in 59 Posts
| Re: Alerts in Tradestation Try this code.. I have not tested the code, but you get the idea. Regards, Suri ========================= ==== Code: Inputs: price(Close), length(9),
zeroLine(21), zeroVisible(false),
upColour(Blue), downColour(White),
colourDeltaBar(1);
Var: TradeSetup(0), barColor(0);
Value1 = hull(price, length);
Plot1(Value1,"hull");
If ZeroVisible = true then
Plot3(zeroLine, "Zero");
if (Value1 > Value1[1]) then
begin
TradeSetup = 1; // Long
barColor = UpColour;
end
else if (Value1 < Value1[1]) then
begin
TradeSetup = -1; // Short
barColor = downColour;
end;
SetPlotColor[colourDeltaBar](1, barColor);
// check if BarColor has changed
if (barColor <> barColor[1]) then
begin
if TradeSetup = 1 then
Alert("Long")
else if TradeSetup = -1 then
Alert("Short");
end;
{
if (Value1 > Value1[1]) then Alert("Long");
if (Value1 < Value1[1]) then Alert("Short"); { Color criteria }
if (Value1 > Value1[1]) then
SetPlotColor[colourDeltaBar](1, upColour)
else if (Value1 < Value1[1]) then
SetPlotColor[colourDeltaBar](1, downColour);
} | ||
| |
|
| | #7 | ||
![]() | Re: Alerts in Tradestation | ||
| |
|
| | #8 | ||
![]() | Re: Alerts in Tradestation Quote:
and "<" by crossesunder | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tradestation alerts | ryounkin | Technical Analysis | 5 | 01-17-2010 12:55 PM |
| Alerts From Different Indicators! | kamakazy | Coding Forum | 3 | 08-17-2009 08:54 AM |
| Debugging Questions... Phantom Alerts... | daedalus | Coding Forum | 3 | 06-25-2009 11:17 AM |
| I Want Alerts Based on Specific Parameters? | Johnson S. Mcdermott | Trading and the Markets | 5 | 06-08-2009 04:39 PM |
| Quote Tracker Paintbar Alerts? | cbratton | Tools of the Trade | 0 | 01-08-2009 06:31 PM |