time fractal do i have this right?
-
https://www.best-metatrader-indicators.com/time-fractal-energy-adaptive-laguerre-rsi-mt5/
this is the custom indicator that i am trying to use and here is the script i have made do i need to change something or try a different approach as i can not get it to buy when it goes above 0.15 and sell if it cross back below or when it cross below 0.85https://fxdreema.com/shared/LsveLMVsc
Also here is my custom indicator input maybe i messed up on the input of my indicator

Any help or feedback would be greatly appreciated
-
@digitalb23 ok so the input of my custom indicator was wrong and i changed smoothing factor, level up, level down to double instead of int. Color change mode on the indicator says it is int but it gives me errors when compiling because there is text. Will it effect the script i am trying to use just having that one variable wrong?
I cant have price as int or color change mode as int or it throws errors. Is this what is causing my indicator to not allow me to use it to trade? And what is a work around? -
very lucky for your that unknown enumeration is the last parameter and can be ignored.
do it like this:
int ATR period 14
ENUM_APPLIED_PRICE Price PRICE_CLOSE
double Smoothing factor 5
double Level up 0.85
double Level down 0.15
delete the last one as it's an unknown enumeration that we can't know without the source or the guy who made it tell you.also there is only 1 buffer from that indicator and the name isn't the color name but the name you want shown on the fxdreema when making blocks.
now, unfortunately this should only work on mt4, in mt5 iCustom works differently and fxdreema autogenerated code adds PRICE_CLOSE as the last parameters because mt5 works like that.
that might be a problem because it will take that as a value for the last parameter which isn't of that type and will return an error.hopefully you're making this for mt4 and it works
hope it helps -
@spuzy damn its on mt5
-
you can still do it like this and do everything else normaly, then when you download the EA download the .mq5 file
open it in the meta editor, search for iCustom and delete the last parameter
',PRICE_CLOSE'
together with the , and do that on every iCustom call and then compile
problem is you'll need to do that on every update you makeyou can also make a integer variable that equals to
iCustom(Symbol(), Period(), "time-fractal-energy-adaptive-laguerre-rsi" , (int)14, (ENUM_APPLIED_PRICE)PRICE_CLOSE, (double)5, (double)0.85, (double)0.15);
where you change the numbers to your constants.
and than instead of using the condition block and choosing the indicator there you can use a custom if block and use
fxdCustomIndicator(int_variable,0,0)
that function will return the value of your indicator on the current bar, to use previous bars change the last number like so
fxdCustomIndicator(int_variable,0,1)altho this is a decently advanced method that will require even more custom code
-
@spuzy i did the first method you said to do and deleted , and price_close from every spot by searching i custom before compiling and cant get it to trigger on conditions still. Here is my updated EA i am writing shouldnt i be able to identify the indicator crossing above 0.15 and below 0.85? Am i writing the EA wrong at this point? Only need it to mark the chart and send a email
-
@digitalb23 https://fxdreema.com/shared/3TvO0OGHd here is my updated EA
-
@digitalb23 ok searched again after deleting price close all the way back to the , at the end of the line was another Price_close i had missed on 3 lines. After recompiling it is now working, just have to get it to trigger as soon as it cross now. Had it set to trigger 1 candle confirmation and it seems to trigger way later than 1
currently testing on candle 0 will submit results back when i get them but thank you so much! @Spuzy -
how did you get binance charts on meta trader?
no problem man, glad I could help

if bar 0 doesn't work I'll look at it and maybe get you a fix so you don't need to delete the thing every time
-
@spuzy i-pandora.com has free crypto charts just link your account. I only use the free version but it has quite a few
-
@spuzy also think I found what the fractal was based on so gonna try to use this instead

-
@spuzy I know this is forex investors mainly but I personally would love it if others would take a look and help figure out the money management portion of mt5 and fxdreema. Still stumped on the balance % buy having to send emails to a bot to do the buys currently till I get it figured out for crypto. But at least I got that going for me currently
-
ah because you can't trade crypto on meta trader, you use crypto charts for your indicator and send emails, then you have a bot that reads those emails and places orders?
why not just use tradingview with their alert system that sends email and jubot that has a lot of options and does it very efficiently. for a usermade bot that is at least. hopefully we get some crypto brokers on mt5.
jubot:
https://discord.gg/ZvN4TN -
@spuzy i am having to send emails to a bot to buy because i cant figure out how to set my buy now configuration. Its slightly annoying because i cant buy and sell directly on mt5 by itself. Tradingview is good but dont want to pay the subscription fee monthly. Also i cant write in pine script and havent found any developers to write for me. I know this is more complicated than just paying tradingview but it has turned into a fun hobby trying to figure it out.
-
@digitalb23 I tried the 50% of balance and it used all of it. Tried freeze 50% and it wouldnt buy. Started trying smaller numbers like 0.001 and it told me i didnt have 100k so slightly confused by the % of balance
-
wait, you mean you actually can trade crypto using mt5 with this pandora? how does it work? are you trading futures or actual crypto?
also that's probably because fxdreema code hasn't been designed for crypto and who know how their lot sizes and all that work.
play around with code, try to buy very small lots and see what you get, find out how much does it cost for 0.01 lot of that coin and then try to figure it all out.
the errors are most likely because metatrader client doesn't have all the info or the brokers info is very different than on forex, like point data, lot sizes, currency and so on, leverage -
@spuzy I have linked my binance account to I-pandora using api keys from binance and am actually buying and selling coins on binance using mt5. Just dont want to put 100% on every trade so curently doing the email work around
-
yea that's cool. thank you for showing me this. also like I said meta traders inside functions aren't build for this kinda thing, this is an outside plugin of sorts.
there's no lots in crypto. play around with that
-
@spuzy will do thank you for helping me
-
fixed lot on usdt pairs is 1 dollar found the % balance to get 50% of your actual balance into a trade is .005 Started playing on a demo account with the numbers and was able to find it fairly quickly. Was hesitant to experement on live trading mode. @Spuzy