Hi Folks,
I've tried a few times to get a snippet of code to work. Good news, I didn't get any syntax errors, bad news nothing happened.
What I'm trying to accomplish is put the value of the last two digits on the chart of the previous bars Hi and Low.
I'm not getting the logic correct of " For I = 0 to N " in Java.
Here's what I have for the meat of the task
Y = high(0);
cc = formatPriceNumber(Y);
ccL = cc.length;
ccV = cc.substring(ccL,(ccL-2));
drawTextRelative(0,high(0)+5,ccV,Color.teal,null,T ext.CENTER,"Calibri",10,0);
If there is a Java Ace out there who could put this into a loop I'd be very grateful.
Good Hunting,
Glenn
I've tried a few times to get a snippet of code to work. Good news, I didn't get any syntax errors, bad news nothing happened.
What I'm trying to accomplish is put the value of the last two digits on the chart of the previous bars Hi and Low.
I'm not getting the logic correct of " For I = 0 to N " in Java.
Here's what I have for the meat of the task
Y = high(0);
cc = formatPriceNumber(Y);
ccL = cc.length;
ccV = cc.substring(ccL,(ccL-2));
drawTextRelative(0,high(0)+5,ccV,Color.teal,null,T ext.CENTER,"Calibri",10,0);
If there is a Java Ace out there who could put this into a loop I'd be very grateful.
Good Hunting,
Glenn
Comment