Similar topics:
Forums › ProRealTime English forum › ProBuilder support › PRT MACD CORRUPTED!?
I think most folks want fast blue line crossing slow red line so what is the code for this via the Assisted Creation Tool please (or have I missed it in above? :))?
Many Thanks
GraHal
The image below shows how to do this with assisted creation:
The first condition (left image) is for “crosses over” and the second condition (right image) is for “crosses under”.
Here is the code generated by the assisted creation:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
// Definition of code parameters DEFPARAM CumulateOrders = False // Cumulating positions deactivated // Conditions to enter long positions indicator1 = MACDline[12,26,9](close) indicator2 = ExponentialAverage[9](indicator1) c1 = (indicator1 CROSSES OVER indicator2) indicator3 = MACDline[12,26,9](close) indicator4 = ExponentialAverage[9](indicator3) c2 = (indicator3 CROSSES UNDER indicator4) IF c1 OR c2 THEN BUY 1 SHARES AT MARKET ENDIF |
Regards,
Pierre
…
the fact that the MACD line is just named MACD can create confusion because it’s not the same logic as in the rest of the Software. I’ve just asked my colleagues to correct this in a future update to display MACDLine in this dropdown menu as well.
Thank You @Pierre.
Please ask your colleagues to correct the confusion re MACD Signal on the right side and Exponential Average of MACD Line on the left side … see attached.
Much easier to read, understand and remember if it can be changed to read MACD Signal on both right and left sides
In order to understand code, names of lines etc need to be the same everywhere we look (in code and in Creation Tool) else we feel like we are in a tumble drier! 🙂
I know you appreciate above, but I can’t believe how this has escaped corrective action for so long?
Regards
GraHal
most folks want fast blue line crossing slow red line so what is the code for this via the Assisted Creation Tool please
Look at the picture Pierre has shared, blue is the MACDline and red is the signal line (an average of the MACDline). No HISTOGRAM. (I know that in some other platforms, the histogram is the MACDline, maybe your confusion come from that).
maybe your confusion come from that).
I am now only confused / frustrated by the various names that lines are given at various points … the Assisted Creation Tool right side different from the left side and then slightly different again when used in the coding window.
If the same name – MACD and Signal were to be used everywhere then there would be no confusion?
At least 4 of us were / have been confused (as they stated on this Topic) by default MACD names for the lines etc … me, Despair, Nicolas and MaxT … and I’m sure there has been many many more so the sooner the names are standardised – across all places that the names appear – the better it will be for all Users, especially rookie coders who will not have read this Topic?
Hi,
FYI, I’ve modified the text last friday. The modification will be included in the next minor platform update.
Thanks again for your feedback and sorry it took so long for someone to take it into account.
Regards,
Pierre
…
Find exclusive trading pro-tools on