Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 11/20/2006(UTC) Posts: 21
|
Is it possible to code an Expert Advisor such that when a signal is generated and plotted on the stock, it is not repeated until after an exit is signalled? One of my systems produces a large number of buy signals but it is only the first one that I am interested in. After that, the subsequent buy signals just create noise.
Thanks
John
|
|
|
|
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)
|
John,
You need to code a latch, or binary latch, to trigger on the first event and then remian silent until a reset condition is met.
Use the search function to look for posts contain "latch" and see what you find. You will find a whole pile of notices about trade latches, they are useful as examples, but there are better examples dealing precisely with your predicament if you look....
If you get stuck, post your best attempt at the code and I am sure someone will come to your aid...
Hope this helps.
wabbit [:D]
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 11/20/2006(UTC) Posts: 21
|
thanks wabbit, I'll give it a go.
John
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 4/30/2006(UTC) Posts: 15 Location: North Carolina
|
John
I just finished putting my trading system into a Plugin format. I'm interrested in feedback if you're interrested in trying it.
Thanks,
K
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 11/20/2006(UTC) Posts: 21
|
|
|
|
|
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.