Suggestion: Add Redraw to Study Right-Click Menu

Questions about MultiCharts and user contributed studies.
User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 34 times

Suggestion: Add Redraw to Study Right-Click Menu

Postby MC_Prog » 28 Aug 2009

Hi.

I'd like to suggest that 'Redraw Study' be added to the right-click menu for on-chart studies.

Image

This, and a keystroke shortcut, are the simplest forms of access I know.

As I routinely have strategies write their setups to Global Variables, I want to be able to quickly cause a study to be redrawn using those GVs.
Attachments
NeedRedraw_01.png
'Redraw Study' desired here
(3.15 KiB) Downloaded 222 times

bowlesj3
Posts: 2134
Joined: 21 Jul 2007
Has thanked: 209 times
Been thanked: 422 times

Postby bowlesj3 » 28 Aug 2009

This is how you can force a study to recalculate using a GV to trigger it.
I like your right click idea as another method of doing this.
John.

Code: Select all


if CurrentBar = 1 then
Begin

Here you define the global variables
GV_SetNamedString and GV_GetNamedString

MySym = leftstr(getsymbolname,2);
Value1 = GV_SetNamedString("Calc_Paint_--" + MySym,"N");

end;

Note: Any EL code from bar #1 to the last bar will be redone.


if LastBarOnChart_s then
begin
if GV_GetNamedString("Calc_Paint_--" + MySym,"N") = "R" then
begin
recalculate();
end;
end;


Return to “MultiCharts”