I would like to calculate the „Pips“ difference between a indicator and the Close. The Parameters which I need for my calculation (in my opinion) 1. Breakout indicator (Support/ Resistance) 2. Close Course My Try in code it works
The Code is working 99% properly my real Problem is the While Loop I use it that way: while (bar< Bars - 1 ) But the way I need is: while (highNumber>Close[I+ 1 ]) But when I use it that way the whole System crashes. Pls See my full code: //---
The Algorithm of the Trailingstop only Long Example: My Try: for ( int i= 0 ;i<limit;i++){ double currentShortMA= iMA ( NULL , 0 , 7 , 0 , MODE_EMA , PRICE_CLOSE ,i+ 1 ); double currentLongMA= iMA ( NULL , 0 , 13 , 0
Hi guys if I try to do a backtest on my custom Expert Advisor it starts eating diskspace like crazy within 5minutes easily 100GB, I have no idea why maybe the loops inside my code? #property copyright "Copyright 2021, MetaQuotes Software Corp."
For example only Long PLS SEE ATTACHED PICTURE TO UNDERSTAND MY PROBLEM 1. Indicator shows BullishDivergence: Bullish Arrow (Green) -THIS IS THE ENDPOINT OF THE DIVERGENCE 2.Indicator has now a line which goes from Endpoint (BullishDivergence
I'm working the course of Jim Hodges at the moment he is teaching how to use magicNumbers, my question is there a better way to do it or is this the normal way(generating Magicnumber)
From the topic u will get fast my problem I'm a beginner EA programmer, this is my first EA pls see my Code I really dont get why its still not working, I mean why do I get still "invalid error"
When i want to have the last Course i can write Close[1] but how can i get the last bid Bid[1] is not available, would be very thankful for help (i'm a newbie at the coding)
Its very difficult for me to explain it in English but I hope u guys can understand me: example: candle0 open=1euro close=1euro low=1euro high=1euro candle0 open=1euro close=2euro low=1euro high=2euro (price rises to 2 euro) candle0 open=1euro
Hi folks, this is my first post i hope the way i do it is ok. pls see my code at first: if ( iStochastic ( NULL , PERIOD_CURRENT , 5 , 3 , 3 , MODE_SMA , 1 , MODE_MAIN, i) > 20