| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Coding Help for TS inputs: shortMA(3), longMA(10); vars: FastOsc(0); FastOsc=averagefc(c,short MA)-averagefc(c,longMA); if FastOsc=highest(c,30) then plot1(FastOsc,"Momo high"); alert("Momentum High"); if FastOsc=lowest(c,30) then plot2(FastOsc,"Momo low"); alert("Momentum High"); | ||
| |
|
| | #2 | ||
![]() | Re: Coding Help for TS Quote:
You need to insert a begin and end to the if statements...... because the way it stands at the moment, the if statement is only looking to plot. The alert isn't included within that statement. It should look like this..... inputs: shortMA(3), longMA(10); vars: FastOsc(0); FastOsc=averagefc(c,short MA)-averagefc(c,longMA); if FastOsc=highest(c,30) then begin plot1(FastOsc,"Momo high"); alert("Momentum High"); end; if FastOsc=lowest(c,30) then begin plot2(FastOsc,"Momo low"); alert("Momentum Low"); end; Hope this helps 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 | ||
| |
|
| The Following User Says Thank You to Blu-Ray For This Useful Post: | ||
blib (03-31-2009) | ||
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TICK Coding Help | Soultrader | Coding Forum | 19 | 04-06-2009 02:28 AM |
| Coding Help | PeterBrazel | Coding Forum | 11 | 03-22-2009 04:44 PM |
| CQG - Coding | Papa Lazarou | Coding Forum | 4 | 01-12-2009 08:13 PM |
| Coding Help | waveslider | Coding Forum | 1 | 08-03-2007 04:48 PM |
| [VSA] Coding | TinGull | Coding Forum | 2 | 03-18-2007 01:05 PM |