binary-com / binary-bot

Visual automation for binary.com
binary-bot.binary.sx
MIT License
231 stars 516 forks source link

moving average calculation #532

Closed elyyyes closed 6 years ago

elyyyes commented 6 years ago

HI EVERYBODY,

@aminmarashi @jy-binary @chylli @ashkanx @raunakkathuria @arunbinary @longdaituong @binary-ex-machina @tymu @chylli @raunakkathuria @NetworkerTrader007 @Daler4ik @tymu @ZDEGLET @Fruitfella @MDallacourt @AlienFly @chylli @binary-ex-machina @raunakkathuria @cache92 @carlosalan2 @CJAsmar @binary-ex-machina @CorreiaMerchant @Relicetti @binary-ex-machina @Daler4ik @CJAsmar @janps1712 ... and everyone can help me.

Maybe i can help with my theory, someone can tell me how can we compare numbers of moving average lines upper and lower the candle.

example we have a wave movement of many moving average lines 6 OR 9 OR 12 OR MORE and we apply the 33.33/66.66 math or 25/75 or 20/80 or 0/100 ... example for 12 MA lines , if we have 8 lines upper the candle and 4 under the candle we trade FALL and reversal

someone can tell me with a link or with a screenhot how to write this function

and thank you in advance for help, good job for all

binary-ex-machina commented 6 years ago

let's assume that you have set 6 MAs (EMA or SMA, right?) What will be the values of each one?

elyyyes commented 6 years ago

Let's say 10 20 30 40 50 60 ... it's not important for the moment ... after i will fix lines that have more reversal ... but all i need is how to add funtion or variable when i have 2 lines upper the candle and 4 lines lower the candle for example staking RISE

Le 15 févr. 2018 2:27 PM, "Binary Ex Machina" notifications@github.com a écrit :

let's assume that you have set 6 MAs (EMA or SMA, right?) What will be the values of each one?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/532#issuecomment-365926758, or mute the thread https://github.com/notifications/unsubscribe-auth/AcT8WgIwpAw8cVEXP4G_jKCJCdBXITshks5tVDDKgaJpZM4SGUB- .

binary-ex-machina commented 6 years ago

if you will let open how many moving averages the bot will have, you need to specify the values. You need to specify which lines needs to be upper the candle top and which will be lower the candle bottom. Slow moving averages (high values) will be the ones that will have this space from the high/low from the candle. Also you need to specify if is the body of the candle or the full candle (with wicks)

specify this list: • Body, body with wicks or ticks? • EMA or SMA? • Values of each MA in multiple scenarios (6 MAs, 9MAs, 12MAs, ...)

elyyyes commented 6 years ago

I tried what you said but this is not what i need ... and it's not everytime ascendant or descendant number like this 10 20 upper and 30 40 50 60 lower ... it can be 20 50 upper and 10 30 40 60 lower ... for this reason i need this technic ...

Hope i don't disturb and thank you very much for your help and assistance

Le 15 févr. 2018 4:28 PM, "Binary Ex Machina" notifications@github.com a écrit :

if you will let open how many moving averages the bot will have, you need to specify the values. You need to specify which lines needs to be upper the candle top and which will be lower the candle bottom. Slow moving averages (high values) will be the ones that will have this space from the high/low from the candle. Also you need to specify if is the body of the candle or the full candle (with wicks)

specify this list: • Body, body with wicks or ticks? • EMA or SMA? • Values of each MA in multiple scenarios (6 MAs, 9MAs, 12MAs, ...)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/532#issuecomment-365961791, or mute the thread https://github.com/notifications/unsubscribe-auth/AcT8Wgw2rcP62_D6np6l34qtlmDkayfMks5tVE0xgaJpZM4SGUB- .

binary-ex-machina commented 6 years ago

well, i hope someone understands what you are trying to do and help you. You need to be more clear and maybe put a full example here. If you want to use moving averages with random numbers it will never work. It's not possible for EMA20/40/60 be above the candle body and EMA 10/30/50 be below the same candle

elyyyes commented 6 years ago

I tried this example:

If ma10 and ma20 > ma30 ma40 ma50 ma60 Do rise

But it arrive that the best momentum is a reversal condition ... like this: Ma10 and ma60 upper than candle and the rest is lower

For this reason i try to find how can i wrote is mathematicly as a balance or as a wave how many upper and how many lower

How can we do for writing this on bot

MA: 12 lines

If 4 lines upper candle (or less) If 8 lines lower candle (or more) Do rise

And really thank you for help and i'm so sorry for disturb

Le 15 févr. 2018 6:00 PM, "Binary Ex Machina" notifications@github.com a écrit :

well, i hope someone understands what you are trying to do and help you. You need to be more clear and maybe put a full example here. If you want to use moving averages with random numbers it will never work. It's not possible for EMA20/40/60 be above the candle body and EMA 10/30/50 be below the same candle

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/532#issuecomment-365992449, or mute the thread https://github.com/notifications/unsubscribe-auth/AcT8Wp59m1s0_YhgULveUGa4vBllkKn0ks5tVGKFgaJpZM4SGUB- .

binary-ex-machina commented 6 years ago

each line will have the same value?

elyyyes commented 6 years ago

What do you mean by this question (same value) ?

A unique value for every line ... same to the example 10 20 30 40 50 60

Le 15 févr. 2018 6:47 PM, "Binary Ex Machina" notifications@github.com a écrit :

each line will have the same value?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/532#issuecomment-366006671, or mute the thread https://github.com/notifications/unsubscribe-auth/AcT8Whtu1t21xdhSNX6acUeyBFzCge4oks5tVG2vgaJpZM4SGUB- .

binary-ex-machina commented 6 years ago

ok, these are the values. It will be EMA or SMA?

elyyyes commented 6 years ago

Normally EMA ... but maybe i will adjust it later when i need if possible

Le 15 févr. 2018 7:53 PM, "Binary Ex Machina" notifications@github.com a écrit :

ok, these are the values. It will be EMA or SMA?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/532#issuecomment-366025366, or mute the thread https://github.com/notifications/unsubscribe-auth/AcT8Ws6GAMnv6lwqMzBRghUY7o7eLW5gks5tVH0VgaJpZM4SGUB- .

elyyyes commented 6 years ago

i'm studiyng many ones for the moment and i will adjust it with time​

2018-02-15 20:00 GMT+01:00 Mohamed Elyes freelancelyes@gmail.com:

Normally EMA ... but maybe i will adjust it later when i need if possible

Le 15 févr. 2018 7:53 PM, "Binary Ex Machina" notifications@github.com a écrit :

ok, these are the values. It will be EMA or SMA?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/532#issuecomment-366025366, or mute the thread https://github.com/notifications/unsubscribe-auth/AcT8Ws6GAMnv6lwqMzBRghUY7o7eLW5gks5tVH0VgaJpZM4SGUB- .

binary-ex-machina commented 6 years ago

Ok, we have the values and the MA type. Which signals need to be above or below the candle for it to rise/fall

elyyyes commented 6 years ago

If 33.33% or less of lines > candle or last tick If 66.66% or more of lines < candle or last tick If ascending from 0 to 66.66% Do RISE

and reversal for FALL

Le 15 févr. 2018 8:15 PM, "Binary Ex Machina" notifications@github.com a écrit :

Ok, we have the values and the MA type. Which signals need to be above or below the candle?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/532#issuecomment-366031647, or mute the thread https://github.com/notifications/unsubscribe-auth/AcT8WhlsQxvkbK30PLIS3PyW8PxHX0R1ks5tVIJNgaJpZM4SGUB- .

binary-ex-machina commented 6 years ago

i don't get the ascending part. If 66,66% of the signals are below the candle, it purchases rise?

binary-ex-machina commented 6 years ago

I don't know if is this or close to what you want. This doesn't work well. You didn't specify the duration and the candle time. This bot check the % of each of the signals that are above or below the close price (actual price or tick) When the market is bullish the last tick/candle is always above the lines (10-60), so it always purchasing Fall. The inverse for bearish trend. On sideways it keeps alternating Rise/Fall for the opposite direction. I don't think this will work.

image

rainbow.xml.zip

binary-ex-machina commented 6 years ago

check the rainbow indicator http://dewinforex.com/forex-indicators/beautiful-trading-rainbow-indicator.html

elyyyes commented 6 years ago

I will try it and tell you what is the result ... but for the moment i need to know where must i set the MA numbers ?

Le 15 févr. 2018 9:04 PM, "Binary Ex Machina" notifications@github.com a écrit :

check the rainbow indicator http://dewinforex.com/forex- indicators/beautiful-trading-rainbow-indicator.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/532#issuecomment-366045474, or mute the thread https://github.com/notifications/unsubscribe-auth/AcT8WiqSnr1WCI9YXJzOpbvMfIIhdijpks5tVI3ogaJpZM4SGUB- .

elyyyes commented 6 years ago

It's a good one the rainbow indicator ... i think that i will create a bot for this technique too

Le 15 févr. 2018 9:04 PM, "Binary Ex Machina" notifications@github.com a écrit :

check the rainbow indicator http://dewinforex.com/forex- indicators/beautiful-trading-rainbow-indicator.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/532#issuecomment-366045474, or mute the thread https://github.com/notifications/unsubscribe-auth/AcT8WiqSnr1WCI9YXJzOpbvMfIIhdijpks5tVI3ogaJpZM4SGUB- .

elyyyes commented 6 years ago

But i think that's better for forex and not for binary ... unfortunatly i'm not a coder i'm a theorician

Le 15 févr. 2018 9:04 PM, "Binary Ex Machina" notifications@github.com a écrit :

check the rainbow indicator http://dewinforex.com/forex- indicators/beautiful-trading-rainbow-indicator.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/532#issuecomment-366045474, or mute the thread https://github.com/notifications/unsubscribe-auth/AcT8WiqSnr1WCI9YXJzOpbvMfIIhdijpks5tVI3ogaJpZM4SGUB- .

binary-ex-machina commented 6 years ago

you can modify the values of EMA on the loop block whew it says "i X 10"

Each time the loop turn you i gets one more, so the values are set as 10,20,30,40,50,60

If you set numSignals to 12, it will go 10,20,...,120. If you want specific numbers, this bot will not help.

binary-ex-machina commented 6 years ago

About the rainbow indicator I'll make one too and post some results on other issue

elyyyes commented 6 years ago

Hi how are you,

I think that we must set a specific MA's numbers ... i will try with this and i'll tell you what's news ... we must wait for next week because i prefer trade a long trade

Le 16 févr. 2018 12:23 AM, "Binary Ex Machina" notifications@github.com a écrit :

About the rainbow indicator I'll make one too and post some results on other issue

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/binary-com/binary-bot/issues/532#issuecomment-366095797, or mute the thread https://github.com/notifications/unsubscribe-auth/AcT8Wr5osuMoN9Zv6msQqKiDXBI_k18Uks5tVLxZgaJpZM4SGUB- .

gokula-krishna-dev commented 6 years ago

We're closing this issue due to inactivity, you're welcome to open it again if you still haven't got your answer.