[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Coding Help



PureBytes Links

Trading Reference Links

I'm trying to code a simple alert that goes off for when price hits a
hi target or a low target. However, I don't want to wait for my 5-minute
candle to close in order to trigger the alert. Is there a way to code it
so that it recognizes the CURRENT price?

Here's what I have:

Input:
Hitarget1(0), Lotarget1(0), alert_wave("c:alert.wav"), length(1);
If close >= Hitarget1
then
print(PlaySound(alert_wave));
If close <= Lotarget1
then
print(PlaySound(alert_wave));


Thanks.
Brian