Relatively new to TOS and its scripting language and I have more experience with TS/MC/EasyLanguage. Have a question as to whether or not TOS is capable of generating an alert or highlighting a bar on a chart when a criteria is met. Basically looking to eyeball backtest an idea similar to a 'showme' study in TS. I have a chart with several indicators that are built on different symbols. The price chart is SPX or another major index and below that I have breadth indicators built with Advancing and Declining Issues, VIX and TRIN. On each of these indicators right now I have some simple moving averages plotted. Now for the tricky part. When I have the combination I am looking for from the several indicators in the subcharts, how to I fire off an alert or have the program highlight the bar where the combination is true? In TS this is easily done but I'm lost in TOS so far. Right now I would like to know if it is possible to do this. If it is, then I'll start looking into how much work it will be. I've seen some indications that it might not be possible and that is why I thought I'd ask here. Thanks!
there isnt a way i know of in TOS to have a script fire off an alert.....alerts have to manually be set up......
however you can have a ring or ding in the script to go off a pop in the upper right hand corner when certain criteria is met......sorry i am not a scripter .....however this may help.......i did not create this script......
this is a simple script combining 3 indicators into one I found online.....
#Programmed By: Chris Ball (firstname.lastname@example.org) on 1/31/09
#Description: This indicator is truly a representation of 3 indicators (RSI, DMI and the StochasticsMomentumIndex).
Input rsi = 50 ;
Input DMI = 14 ;
plot rsi1 = if RSIWilder(length = 14)."RSI" >= rsi then 10 else 9;
plot rsi2 = if RSIWilder(length = 14)."RSI" < rsi then 10 else 9;
plot dmi1 = if DMI()."DI+" >= DMI()."DI-" then 8 else 7;
plot dmi2 = if DMI()."DI+" < DMI()."DI-" then 8 else 7;
plot sto1 = if StochasticMomentumIndex()."SMI" >= StochasticMomentumIndex()."AvgSMI" then 6 else 5;
plot sto2 = if StochasticMomentumIndex()."SMI" < StochasticMomentumIndex()."AvgSMI" then 6 else 5;
also forgot to mention......and I am NOT trying to take you away from this site....just trying to help u find an answer......
I also go to the TOS chatroom ......."thinkscript lounge" and many people have helped me with stuff about scripting......
The following user says Thank You to Gisfor for this post: