-
In the function Trade_WPR at line 2962 I tried to write this condition:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Buy
Sell
You control the signal level with So for example, if you've
The value is converted from negative to positive at the following line (note the
So all you need is to optimize Let me know if that make sense. Bitwise operatorsThese They are controlled using Here is the main condition (as mentioned before):
Now, Now,
both More examples:
And this example:
results in Also note, that So basically all conditions (using AND bitwise operator) needs to be true, otherwise, if one condition is false, the end result is also false. So the whole idea is like:
where you can have main condition, and extra condition if needed, which aims to filter out the main signal. So if you've main condition of
In this case, you got signal on buy on So basically:
consist main condition and extra conditions which are controled by Where
So:
And here is where it's more confusing:
So in simple words. signal method param corresponds to the following conditions:
All values between are basically a combination of multiple conditions based on its bit configuration, so you can optimize signal method param with all permutations according to your needs, in order to find its best configuration. Check Open methods for further info. |
Beta Was this translation helpful? Give feedback.
Buy
Sell
You control the signal level with
WPR_SignalLevel
param, so you don't have to change any code.So for example, if you've
WPR_SignalLevel
set to30
, then it is:wpr[period][CURR] > 50 + 30
=>-WPR > 80
=>WPR > -80
for buywpr[period][CURR] < 50 - 30
=>-WPR < 20
=>WPR < -20
for sellThe value is converted from negative to positive at the following line (note the
-
):So all yo…