Support Board
Date/Time: Sat, 23 Nov 2024 13:26:11 +0000
Post From: Volume spike coding
[2013-06-30 21:16:21] |
user85017 - Posts: 37 |
Hello, this is the indicator code called "High Volume Spike Reversal" for tradestation platform, do you think it's possible to have it for sierra Vars: iVolume(0); If bartype < 2 then iVolume = Ticks else IVolume = volume; //HIGH VOLUME SPIKE LONG SIGNAL Condition1=Low<=Low[1] AND Low<=Low[2] AND Close>=Close[1] AND Close>=Open AND (Close-Open)<(High-Low) AND iVolume[1]>iVolume[2] AND iVolume[1]>iVolume[3] AND iVolume[1]>iVolume[4] AND iVolume[1]>iVolume[5] AND iVolume[1]>iVolume[6]; Condition2=Low>=Low[1] AND Low<=Low[2] AND Close>=Close[1] AND Close>=Open AND (Close-Open)<(High-Low) AND iVolume[1]>iVolume[2] AND iVolume[1]>iVolume[3] AND iVolume[1]>iVolume[4] AND iVolume[1]>iVolume[5] AND iVolume[1]>iVolume[6]; //HIGH VOLUME SPIKE SHORT SIGNAL Condition3=High>=High[1] AND High>=High[2] AND Close<=Close[1] AND Close<=Open AND (Open-Close)<(High-Low) AND iVolume[1]>iVolume[2] AND iVolume[1]>iVolume[3] AND iVolume[1]>iVolume[4] AND iVolume[1]>iVolume[5] AND iVolume[1]>iVolume[6]; Condition4=High<=High[1] AND High>=High[2] AND Close<=Close[1] AND Close<=Open AND (Open-Close)<(High-Low) AND iVolume[1]>iVolume[2] AND iVolume[1]>iVolume[3] AND iVolume[1]>iVolume[4] AND iVolume[1]>iVolume[5] AND iVolume[1]>iVolume[6]; IF Condition1 OR Condition2 then Plot1(1,"Spike") else If Condition3 or Condition4 then Plot1(-1,"Spike") else Plot1(0,"Spike"); Date Time Of Last Edit: 2013-06-30 21:16:39
|
volume spike.JPG / V - Attached On 2013-06-30 21:16:36 UTC - Size: 56.88 KB - 840 views |