[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: anyohlc.dll



PureBytes Links

Trading Reference Links

 Hope this helps. 
This is what I am doing similar to your issue:

vars: NextOpen(0);
NextOpen = (MYOPEN((LPLONG)&Open,(int) -1)) / PRICESCALE;
------------other code----------------------- 
if NextOpen > SEntry then Sell ("SE1") the next bar at SEntry stop;

Basically, create a variable to hold the price you want to get, NextOpen(0), in
this case. Call the DLL as shown using &Open for the open, &High for the high,
etc. The -1 is for tomorrow's open in this case. -2 would be day after
tomorrow.  Let me know if you have any other questions or if it still does not
work. I just started using it yesterday so there might be better ways...

Good luck and clear skies!

Jdev02@xxxxxxx wrote: 

Does anyone know how to apply the "anyohlc.dll" in a system test to referece
the open. I loaded the dll in my program files and plotted the "indanyohlc"
indicator on my charts but I'm stuck as how to reference the dll in my system
test. To check the accuracy of the dll, I want to write a signal that states: "
if close of data2 > close[5] of data2 then buy at open + AvgTrueRange(1) *
.60......If marketposition=1 and close > Entryprice then exitlong ("moc") .
This should take me out on the close of the entry day............thanks/John jdev02@xxxxxxx