Percentual Entry
-
Hi all,
It's possible to code this?:
if today's open is 20% (20 is an example, it must be an input) more then yesterday close, then entry long - SL at 0% (same yesterday close price) - TP at 60% (60 is an example) more then the yesterday close.
opposite for short
Thank you
Andrea -
The main intention is to follow the trend
-
based on what is this % calculation done? compare to what is this 20%?
-
@miro1360 The difference between the yesterday close and the today open (for indices for example) A Gap... but expressed in percentual instead of point.
-
but what is your formula for calculation this difference? if is that standard formula as:
((|vYesterday-vToday|)/((vYesterday+vToday)/2))*100 = [%]than something like this:
https://fxdreema.com/shared/r5J0gv3je

-
@miro1360 Thank you i try it, but i'm a "novice" in building here