Flex Renko Closes

Questions about MultiCharts and user contributed studies.
Kingjelly
Posts: 26
Joined: 23 Jan 2008

Flex Renko Closes

Postby Kingjelly » 27 Apr 2018

Does anyone have any code that will project and plot a line at the price above and below the current price where the next bar will start?

The below code works for range bars but not the flex renko.

Code: Select all

Vars:

BAplotLoop(maxbarsforward),
k(0),

projHigh(0),
projLow(0);

//if bartype = 13 then begin // plot only if this is a range bar
If LastBarOnChart then begin
projHigh = low + (h[1]-l[1]);
projLow = high - (h[1]-l[1]);

for k = 0 to BAplotLoop begin
Plot1[-k](projHigh, "High");
Plot2[-k](projLow, "Low");
end;
noplot(1);
noplot(2);
// end;
end;
Last edited by Kingjelly on 27 Apr 2018, edited 1 time in total.

User avatar
TJ
Posts: 7459
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 999 times
Been thanked: 2138 times

Re: Flex Renko Closes

Postby TJ » 27 Apr 2018

See post #1 and #2
viewtopic.php?t=11713


Return to “MultiCharts”