logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
sandeepy02  
#1 Posted : Saturday, April 25, 2009 3:25:33 PM(UTC)
sandeepy02

Rank: Newbie

Groups: Registered, Registered Users
Joined: 4/17/2009(UTC)
Posts: 2

Hi,
I am new to MDK and this may be a basic query. I wrote a simple program (which I called from an indicator through DLL) which tells me whether to buy or sell. The inout is a 5-minute data. But once I get a buy/sell signal, it keeps on calling DLL (nearly evry second) unless the indicatoor value changes.

I just want the value to come once for every change in indicator.

Is my understanding of metastock's functionalities is wrong or am i using it worngly?

Will post code if anyine inteested.

Cheers
SY
wabbit  
#2 Posted : Saturday, April 25, 2009 7:40:36 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
SY,

MS is a fully-evaluated program; do a search if you don't understand the ramifications of this. The easiest way to deal with this in your MSX code is to use a newBar trigger code to only signal the entry/exit on a newBar.


wabbit [:D]


Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.