Corrections: In the TradeOpenSLPriceTPRatio function the line to calculate tp should read if ( takeProfitRatio > 0 ) tp = price + ( ( price - stopLossPrice ) * takeProfitRatio );
You'll get many errors if you try to construct the code as shown so you'll need to actually take time to define all the undefined variables and you might change some double's to const double etc. It will take work on your own but the video is a good way to learn how to organize an EA.
I am able to download and compile this code with no errors at all. There are no undefined variables and adding const will prevent inadvertend modification of values but does not fix any code problems. More likely you have made some modifications that are in error. Do you have an example of an undefined variable?
@@MoFromTheHouseOfEl The code in the video, except for one correction which does not affect compiling, is identical to the download code. That's how I create the download code. If you have a problem then it is more likely with your own copy.
Great video as always. The functions SwingHigh and SwingLow both return integer values, however the calling statements do not make use of these return values. What am I missing. Thank you.
Corrections:
In the TradeOpenSLPriceTPRatio function the line to calculate tp should read
if ( takeProfitRatio > 0 ) tp = price + ( ( price - stopLossPrice ) * takeProfitRatio );
I love the way you code, thanks!
Thank you too
cool video Sir .Is it possible to make a video on the zig zag indicator and to use it as a Reversal
You'll get many errors if you try to construct the code as shown so you'll need to actually take time to define all the undefined variables and you might change some double's to const double etc. It will take work on your own but the video is a good way to learn how to organize an EA.
I am able to download and compile this code with no errors at all. There are no undefined variables and adding const will prevent inadvertend modification of values but does not fix any code problems. More likely you have made some modifications that are in error. Do you have an example of an undefined variable?
@@OrchardForex I said "if you try to construct the code as shown". Downloading a prepared version is another topic.
@@MoFromTheHouseOfEl The code in the video, except for one correction which does not affect compiling, is identical to the download code. That's how I create the download code. If you have a problem then it is more likely with your own copy.
Great video as always. The functions SwingHigh and SwingLow both return integer values, however the calling statements do not make use of these return values. What am I missing. Thank you.
Sometimes I want the bar number for the high/low but in this case I only need the value of the high or low so I didn't bother to use the bar number.
Very nice, thank you
Thank you
Hi
Do you have any signals or any safe expert advisors to invest in ??
I don't make performance promises on signals or experts