# Reversal System written in exact VBA code

Forums ProRealTime English forum ProBuilder support Reversal System written in exact VBA code

• This topic has 1 reply, 2 voices, and was last updated 1 month ago by JS.
Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 2 posts - 1 through 2 (of 2 total)
• #196573 Report

Kindly change to Prorealcode. Thanks in advance

#System
#PARAM “Wick_Multiplier”, 2.5, .5, 20
#PARAM “Body_Percentage”, .25, .1, 1
If C > O _
AND (O – L) >= ((C – O) * Wick_Multiplier) _
AND (H – C) <= ((H – L) * Body_Percentage) _
OR C < O _
AND (C – L) >= ((O – C) * Wick_Multiplier) _
AND (H – C) <= ((H – L) * Body_Percentage) _
OR C = O AND NOT C = H _
AND (H – L) >= ((H – C) * Wick_Multiplier) _
AND (H – C) <= ((H – L) * Body_Percentage) _
OR O = H AND C = H _
AND H – L >= AVG(H-L, 50) Then
Signal = LongSignal
ElseIf C < O _
AND (H – O) >= ((O – C) * Wick_Multiplier) _
AND (C – L) <= ((H – L) * Body_Percentage) _
OR C > O _
AND (H – C) >= ((C – O) * Wick_Multiplier) _
AND (C – L) <= ((H – L) * Body_Percentage) _
OR C = O AND NOT C = L _
AND (H – L) >= ((C – L) * Wick_Multiplier) _
AND (C – L) <= ((H – L) * Body_Percentage) _
OR O = L AND C = L _
AND H – L >= AVG(H-L, 50) Then
Signal = ShortSignal
End If

#196593 Report

I converted the code into a slightly more understandable version.

###### 1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)