Hello everyone, who can remake the code for MQL4, I will be very grateful.
Def Calculate_barn_length(h4_close, h4_open):
barn_length = ((h4_close - h4_open) * 100) / h4_open
return barn_length
# Usage example
h4_close_price = 1.3050
h4_open_price = 1.3000
barn_length_h4 = Calculate_barn_length(h4_close_price, h4_open_price)
if barn_length_h4 > 1.5: # Example threshold value for a reversal signal on M1
print("Signal of a possible reversal of traffic on M1")
more:
print("No turn signal on M1")
Def Calculate_barn_length(h4_close, h4_open):
barn_length = ((h4_close - h4_open) * 100) / h4_open
return barn_length
# Usage example
h4_close_price = 1.3050
h4_open_price = 1.3000
barn_length_h4 = Calculate_barn_length(h4_close_price, h4_open_price)
if barn_length_h4 > 1.5: # Example threshold value for a reversal signal on M1
print("Signal of a possible reversal of traffic on M1")
more:
print("No turn signal on M1")
Chaos Creator