turns out you need to give mt5 permission to request http, which i did and now it woks, just gonna leave this here incase anybody else has a similar issue and didn't realize you had to go into mt5 terminal - tools - options - Expert Advisors - allow web requests - then add the address....
Best posts made by AxelForex
-
RE: Send HTTP Requestposted in Questions & Answers
Latest posts made by AxelForex
-
RE: Send HTTP Requestposted in Questions & Answers
turns out you need to give mt5 permission to request http, which i did and now it woks, just gonna leave this here incase anybody else has a similar issue and didn't realize you had to go into mt5 terminal - tools - options - Expert Advisors - allow web requests - then add the address....
-
Send HTTP Requestposted in Questions & Answers
I'm trying to use the "Send HTTP Request" I have a server that runs its own code and it sets a ping value to 1 as a go sign for my EA to run some other blocks I'm using a conditional if value 1 == 1 then pass for this. Anyway how do i get my ping value 0/1 into a variable. I pass the send http request block every 30 sec and it should get the ping either off(0) or on(1). The end of the http is called ping_var (same as my variable) (http://"---IP---PORT" /ping_var) which is the same name as my variable thinking it will update the variable but this isn't working and i don't know where to go about fixing this
-
RE: sum of pass returns in loop, help?posted in Questions & Answers
Yes this is the idea but I'm working on this for the purpose of the mathematical procedures it can calculate and a wide flexibility. So, what I'm looking for is not necessarily just the daily returns but more the accumulation of variable x which is different in every pass of a loop. Because I can use the built-in formula block to calculate the necessary math's but if I want to do this to find averages, I need to compute back in time by running the loop and adding the values.
I will want to run larger calculations in the future and going into the custom code block and writing the mathematical code for each and every candle will be too extensive. I really appreciate your help in your suggestion I'll be keeping the code you wrote for when I need it in the future, but I'm still stuck on my initial problem.
I've set the loop up so that on every pass a variable gets modified by +1, this I set as the candle id for every pass on 30 cycles. on the daily timeframe the loop computes through the last 30days and the math is calculated on every pass, I just need to sum the return of each pass.
-
sum of pass returns in loop, help?posted in Questions & Answers
Hi guys I've been stuck on this problem for a few days. I am trying to calculate volatility; the math is straight forward but several conditions of this math require me to run calculation through loops then averaging the result.
For example, finding the price difference between day1's close and the day prior's close, I can run this calculation for each pass and with each pass the candles ID increases by +1, effectively moving back in time running this calculation for each pass/observation until the number of observations is met.
This method was inspired to me by miro1360 on their post: https://fxdreema.com/forum/topic/4510/tutorial-loop-advanced-find-and-save-specific-value-from-indicator-history I see how Miro creates a system that can identify the highest and lowest value found thought the loop's return of ATR values, but what I need is to add the values from each pass and sum them so I can run a mean calculation.
I can try to paint the picture of what I am trying to create:
each pass advances one bar ID
passValue1 + passValue2 +passValue3 + ... + passValue"n" = sum
sum/"n" = averageAs far as I understand when I take the value of the first pass into a variable, it gets replaced by the return of the next pass thereafter and so on...
I can't build a system that accumulates and sums the values of all passes

The return of two closed daily price periods was just an example... I will be taking the mathematical process of summing and averaging variable return from each pass together, further once I figure out how to.

Can anybody help me develop a process that is capable accumulating pass values.
Thanks in advance for your time reading my post
