The following formulas can be written in the CustomEMA and SellByCustomEMA parameter fields:
EMA(X,Y) > or < A: Comparison of prices for EMA X seconds, minutes or hours ago and EMA Y seconds, minutes or hours ago (allowed values X=1s…300s or 2m…90m or 1h…41h, Y=1s…300s or 2m…90m or 1h…41h)
MAX(X,Y) > or < A: Comparison of maximum price of X minutes or hours ago and EMA of Y seconds, minutes or hours ago. Valid values X=5m…90m or 1h…41h, Y=1s…300s or 2m…90m or 1h…41h.
MIN(X,Y) > or < A: Comparison of the minimum price of X minutes or hours ago and the EMA of Y seconds, minutes or hours ago. Valid values X=5m…90m or 1h…41h, Y=1s…300s or 2m…90m or 1h…41h.
BTC(X,Y) > or < A: Comparing BTC/USDT prices over EMA X seconds, minutes or hours ago and EMA Y seconds, minutes or hours ago (allowed values X=1s…300s or 2m…90m or 1h…41h, Y=1s…300s or 2m…90m or 1h…41h).
MAvg(X,Y) > or < A: Comparison of average prices of the whole market(market) for EMA X seconds, minutes or hours ago and EMA Y seconds, minutes or hours ago (valid values X=1s…300s or 2m…90m or 1h…41h, Y=1s…300s or 2m…90m or 1h…41h).
Two settings affect the calculation of the average market price:
1) On the Settings – Main tab, “Black List” and “Exclude from delta” – if the checkboxes are selected, Black List markets will be excluded from the average market price.
2) On the Settings – Advanced – Engine settings tab, “Weighted mAvg” – if the checkbox is ticked, the market price is taken on average with a weight equal to the daily volume.
In other words, the lower the daily volume of a coin, the less it affects the average. The calculation can be compared to capitalisation: it is the sum (price * volume).
Avg(X,Y) > or < A: entry by analogy with EMA(X, Y). The price X seconds or minutes ago is compared with the price Y seconds or minutes ago.
If Y=1, the current price is taken. The average price line (Avg Price) can be seen on the coin chart if you right-click on the ‘Show charts \ spot trading glasses’ button (to the right of the M button) and then check the Show Avg Price box.
Vol(X,Y) > or < A: volume comparison formula. X and Y can only be one of these fixed values: 5s, 15s, 30s, 1m, 3m, 5m, 15m, 30m, 1h, 3h, 24h.
The calculation is performed using the formula: (average minute volume for time Y) divided by (average minute volume for time X).
Example: Volume for an hour is 120,000 USDT (the average minute volume for an hour will be 2,000).
Volume for the last minute: 4,000 USDT
Then Vol(1h,1m) = 4000/2000 = 2, i.e. the volume in this minute is 2 times greater than the average minute volume for the last hour.
Special case: if Vol(0,Y), then it simply gives the average minute volume for the time Y, without comparison to another interval.
Each formula (X,Y) > or (more) or 0.5
MAX(5m,2)2
BTC(1h,10)-0.1
Avg(5m,1)>1
Vol(1h,1m)>2