Communicate with E.A , Search the last candles with this price ? and problem with fibo ..
-
Hello !
First sorry for my very bad english.
I'm working on my personnal E.A and i have a problem.
I'm trying to make a function who draw a fibonnaci.
For the fibonnaci , the level i need to draw it is 0% and 100 %.
If i make my analys before and get thoses values (0 and 100) from my tradingview chart as price (exemple 0 % = 1.1800 and 100% = 1.1900)
I can set 2 variables before like FIBO0 and FIBO100 but how can i make thoses variables CHANGE ON RUN , not by modify variable block or by creating constant but by my own interaction ?
There is a possibility to make a "communication" between my EA , running on chart and me ?
Something like "prompt" block , who open a pop up where i can put my values (price of 0% and 100%) and then change de variable FIBO0 and FIBO100 ?
In my case i can't use prompt because it's only creating button and let me make a choice , not enter data.
This will fix my first problem if it's possible or i will make different ..
If i can get thoses values , how can i make the EA search the last candles with thoses prices (FIBO0 & FIBO100) to draw my fibo auto ?
The last thing is a little problem (not urgent) but i don't understand what's appens >
I made a comment block who draw some fibo value (0.38 ; 0.50 , ect..)
before creating this comment block i made my own research here and i find how to make it , everything is ok ( variables , get price from object on chart picked by name , ect..) price by levels is ok too .
Its perfectly working for 0.38 % but for EVERY other levels i get "2147483647" , even if i move my fibo , even if i change the values of price by levels (i made a test for all numbers from 0 to - 10) starting by 0.
I don't understand what's wrong with x)
Thank you for your help !
-
Maybee i find a method to fix my first problem :
create a btn who draw a text > edit the text on chart > another btn "ok" that get value from the text and put it into a variable .
I think this could work i will test after
-
@xzion Can you please share your results? That sounds very interesting.
-
Here you cand find the shared project / function call it as you want !
https://fxdreema.com/shared/p6SYkyI5c
To use it on test you just have to follow these step
1 launch EA
2 Click on "GET" BUTTON
it's setting on right down 2 value :
FIRST is 123456
Second is 78910
As text on chartYou just have to make a right click on the chart > List object > EDIT "Text1" for value 1 and "TEXT2" for value 2 (EDIT DESCRIPTION NOT NAME) and click on OK > it's saving new description into var get1 and get 2
get variables are define as string so
it's working with text and value like 1.XXXX , ect -
If someone know how i can "search" the last candle with the price i choose before ?
-
@xzion Evey time some custom code is there I cannot help, I'm afraid.
I'm not sure how that can be done with fxDreema clocks when combined to custom code.