Forum

Reciprocal

I am not the greatest mathematician but I have some functions I am converting from easy language that use the reciprocal of a number to provide a multiplyer in another function. double method (int pwr) { double frac=0; frac=1/pwr; dootherstuffwith frac } However when I Print this the expression

Plotting dots

I have an indicator that generates discrete values for each bar and I want to be able to plot them as rows of dots. The only options I can see in the SetIndexStyle method are DRAW_LINE and DRAW_SECTION, and I am passing STYLE_DOT as the 3rd argument. I want to draw discrete dots, not a dotted line

Debugging

Anyone got any input on how to debug scripts ? I have been starting to try to convert some Easy Language code to MQL4 and am still trying to understand how the plotting of indicator values works. This snippet below is from an indicator I found on this board, but when I apply it my system locks up