I dont believe GV is only for rt.. If i back test-- and on chart 1 i get a buy signal-- put the var result into GV... Then on chart 2 it will see the GV and take a trade... I do use Global mode for playback... Im on mc14-- so in order to use Global Mode i have to close all my other charts to use playback(or they will all be trading whatever start i have on them all at the same time).. But that is ok..
I did just see someone else post in another thread talking about using Pmm keywords cause he thought it they were more stable then GV.. Ive never heard/used/tried or knew about pmm vars.. So maybe that is a better way to go.
viewtopic.php?p=142240#p142120
But to answer your question -- i have been able to use GV for back testing(playback)..
Thank you for your reply. I'm relatively new to the use of these DLLs. I am trying to use the document to do so.
Here is a simple script I wrote to set the values:
Code: Select all
vars:
bullishsig(0),
bearishsig(0);
// CONDITION1 and CONDITION2 are placeholders for example purposes
if CONDITION1 = true then bullishsig = 1 else bullishsig = 0;
if CONDITION2 = true then bearishsig = 1 else bearishsig = 0;
if LastBarOnChart then
begin
getbullsig = GVSetNamedDouble("BullishFR",bullishsig);
getbearsig = GVSetNamedDouble("BearishFR",bearishsig);
end;
plot1(bullishsig,"BULLSIG");
plot2(bearishsig,"BEARSIG");
This is an indicator applied to say the FlexRenko chart. On the subgraph I would be able to visually identify each time the signals are equal to 1 with a histogram plot.
Now, let's assume I have a 10-second chart on the same workspace but a different chart window. I then apply the below code to get the values:
Code: Select all
vars:
bullishsig(0),
bearishsig(0),
getbullsig(0),
getbearsig(0);
bullishsig = GVGetNamedDouble("BullishFR",-1);
bearishsig = GVGetNamedDouble("BearishFR",-1);
plot1(bullishsig,"BULLS");
plot2(bearishsig,"BEARS");
My understanding is the output from chart1 will be taken and applied to chart2 subgraph. If that is the case, that would make sense how to transmsit the data from chart 1 (flexRenko) to chart 2 (time based).
However, when I attempt the above using a signal, and plot the indicator that get's the values into Chart 2, I get a 0.00 output. Is that because the getter function (GVGetNamedDouble) only works in real-time and will not show the signals from a historical stand point? For example, the signals that took place on Friday?
I hope my question is not overly complicated.
Example subgraph output from chart 1: FlexRenko:
Example subgraph output from Chart 2: 10 Second Chart:
Look forward to your reply.