Why is an information in my printf() function incorrect in MQL4?
<p>My print formatting is giving me random answers, despite my coding being correct. I'm trying to display the candle bar lengths of the previous two candle bars prior to a trade entry. Here is the coding I've used.</p>

<p><code>PCL1</code> &amp; <code>PCL2</code> are the relevant field entries. They are divided by <code>_Point</code> to give an integer formatting.</p>

<p><code>PCL2</code> = Previous Candle Stick length, Shift 2</p>

<p><code>PCL1</code> = Previous Candle Stick length, Shift 1</p>

<p>In this example I have focused on the Shift2 Candlestick</p>

<pre><code>Short_Bull_2_Close   =  iClose( Symbol(), 0, 2 );
Short_Bull_2_Open    =  iOpen(  Symbol(), 0, 2 );
CandleBody_2         =  ( Short_Bull_2_Close - Short_Bull_2_Open );
                     // Gives the Candlebody length in pips.
</code></pre>

<p>And this is my <strong><code>printf()</code></strong> coding:</p>

<pre><code>printf( "PCL1 [%d] PCL2 [%d]", CandleBody_1 / Point,
                               CandleBody_2 / Point
        ); // ___________________________________________________________  SELL//
</code></pre>

<p>However, all I get is as pictured &amp; highlighted..<a href="https://i.stack.imgur.com/PBK8e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PBK8e.png" alt="enter image description here"></a></p>