HA- short set up after a rally
Forums › ProRealTime English forum › ProBuilder support › HA- short set up after a rally
- This topic has 6 replies, 2 voices, and was last updated 3 years ago by cavineet.
Viewing 7 posts - 1 through 7 (of 7 total)
-
-
08/13/2021 at 6:22 AM #17521008/13/2021 at 8:27 AM #175215
I just reverted conditions:
1234567891011121314151617181920// Trend Templatec1 = Average[13](close) < Average[26](close)c2 = Average[26](close) < Average[52](close)c3 = average[52](volume*close) > 3000000n = 0if barindex = 0 thenhaOpen = openhaClose = closeelsif N = 0 thenhaClose =(Open+High+Low+Close)/4haOpen =(haOpen[1]+haClose[1])/2elsif (barindex MOD N) = 0 thenhaClose =(Open[N]+Highest[N](high)+Lowest[N](low)+Close)/4haOpen =(haOpen[1]+haClose[1])/2endifc4 = haclose < haopenc5 = haclose[1] > haopen[1]c6 = haclose[2] > haopen[2]c7 = haclose[3] > haopen[3]SCREENER[c1 and c2 and c3 and c4 and c5 and c6 and c7 ](volume*close as "traded volume")08/13/2021 at 2:01 PM #17523708/14/2021 at 9:40 AM #175289There’s no data on your pic.
Can you post gthe rules to go short?
08/15/2021 at 3:14 AM #17537508/17/2021 at 11:44 AM #175532Ok, then no moving average is needed to simply spot any reversion, just after a P number of green candles, the first red one is returned:
12345678910111213141516171819P = 10N = 0if barindex = 0 thenhaOpen = openhaClose = closeelsif N = 0 thenhaClose =(Open+High+Low+Close)/4haOpen =(haOpen[1]+haClose[1])/2elsif (barindex MOD N) = 0 thenhaClose =(Open[N]+Highest[N](high)+Lowest[N](low)+Close)/4haOpen =(haOpen[1]+haClose[1])/2endifhaBullish = haClose > haOpenhaBearish = haClose < haOpenCond = 0IF haBearish AND (summation[P](haBullish[1]) = P) THENCond = 1ENDIFSCREENER[Cond]1 user thanked author for this post.
08/17/2021 at 7:47 PM #175580 -
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)
Find exclusive trading pro-tools on
Similar topics: