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

Notification

Icon
Error

Options
Go to last post Go to first unread
borsaholic  
#1 Posted : Tuesday, August 25, 2015 2:10:47 PM(UTC)
borsaholic

Rank: Member

Groups: Registered Users, Subscribers, Unverified Users
Joined: 8/25/2015(UTC)
Posts: 10

Hi,

 

please help, I have a problem. I tried and tried, but it does not work. Where is the mistake.

This formula I wrote in the indicator builder:

 

Se:=8;

zz:=C;

If(If(PeakBars(1,zz,Se)> TroughBars(1,zz,Se),zz=Trough(1,zz,Se) AND BarsSince(zz=Trough(1,zz,Se))=TroughBars(1,zz,Se),0),1,

 

If(If(PeakBars(1,zz,Se)< TroughBars(1,zz,Se),zz=Peak(1,zz,Se) AND BarsSince(zz=Peak(1,zz,Se))=PeakBars(1,zz,Se),0),-1,0));

 

In Chart it show me like binaries between 1 and –1. Okay.

But I want to explore it in the explorer, but it doesn't work. I don't know why?

 

Thanks for your help!
mstt  
#2 Posted : Tuesday, August 25, 2015 8:33:35 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi borsaholic The most likely reason for an exploration to fail when the indicator it is based on works as expected is that the Explorer is set to "Load Minimum Records". You should use the Options button to change this setting to the number of bars you're loading for your charts. Load 500 bars and see what happens. The functions used in your formula will not force the Explorer to load sufficient bars to give a valid, or indeed any, result. Roy
borsaholic  
#3 Posted : Tuesday, August 25, 2015 10:19:44 PM(UTC)
borsaholic

Rank: Member

Groups: Registered Users, Subscribers, Unverified Users
Joined: 8/25/2015(UTC)
Posts: 10

Hallo Roy, thank you for your piece of advice. The "Load Minimum Records" = 5000. I think, the formula is wrong. The original formula (in the expert) is: If(PeakBars(1,zz,Se)< TroughBars(1,zz,Se),zz=Peak(1,zz,Se) AND BarsSince(zz=Peak(1,zz,Se))=PeakBars(1,zz,Se),0); Now, I want to rebuild it for exploration to response 1, 0 or -1 in the time matching if the destination is reach (like binary picks). What I want to do is to explore the number of wave count I see in a chart, that is build in the expert advisor. I am happy for anything help.
mstt  
#4 Posted : Tuesday, August 25, 2015 11:34:57 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi borsaholic The formula works fine as an indicator and it also works fine as an exploration. Part of the problem may be that all securities are returning a ZERO value rather than +1 or -1. As for the "Load Minimum Records" or "Load [censored]X Records" it is the radio button for one or the other that is enabled. If the Load Minimum Records button is enabled then the [censored]X setting above it will be ignored. For my test the the minimum records loaded is 80 bars. You can test this by adding "Cum(1)" (without the quotes) into an empty column of the exploration, which will then tell you how many bars were loaded for each security. See my version of the exploration below. It shows hits on the current bar in Col A, the number of hits across all loaded data in Col B, and the number of bars scanned for each security. Roy {ColA} e:=8; zz:=C; X:=If(If(PeakBars(1,zz,Se)> TroughBars(1,zz,Se),zz=Trough(1,zz,Se) AND BarsSince(zz=Trough(1,zz,Se))=TroughBars(1,zz,Se),0),1, If(If(PeakBars(1,zz,Se)< TroughBars(1,zz,Se),zz=Peak(1,zz,Se) AND BarsSince(zz=Peak(1,zz,Se))=PeakBars(1,zz,Se),0),-1,0)); X; {ColB} Se:=8; zz:=C; X:=If(If(PeakBars(1,zz,Se)> TroughBars(1,zz,Se),zz=Trough(1,zz,Se) AND BarsSince(zz=Trough(1,zz,Se))=TroughBars(1,zz,Se),0),1, If(If(PeakBars(1,zz,Se)< TroughBars(1,zz,Se),zz=Peak(1,zz,Se) AND BarsSince(zz=Peak(1,zz,Se))=PeakBars(1,zz,Se),0),-1,0)); Cum(X<>0); {ColC} Cum(1);
borsaholic  
#5 Posted : Wednesday, August 26, 2015 10:53:44 AM(UTC)
borsaholic

Rank: Member

Groups: Registered Users, Subscribers, Unverified Users
Joined: 8/25/2015(UTC)
Posts: 10

Thanks Roy! In fact, the problem is as you describe; all securities are returning a ZERO (in Col A). And I tested minimum records. It loaded between 2000 and 4000 bars (for 15 min. exploration). So is there any solution to my problem? I would like to achieve that waves are counting in der Explorer. That is a weakness in Metastock or plug-ins. I know, for every problem there is a solution. For example alphomega could perhaps be translated from important parts of formula of expert advisor to the explorer "language". But I don't know if that all is practicable in the implementation to take profits.
Dax  
#6 Posted : Tuesday, September 1, 2015 12:17:34 PM(UTC)
Dax

Rank: Newbie

Groups: Registered Users, Subscribers, Unverified Users
Joined: 8/30/2015(UTC)
Posts: 9

good day sirs,

 

i know a lot of people will scold me because this forum's principle is to teach people to fish. not to give them. 

my apologies. but im no good in programming. im going to ask sirs if someone can help me. this is with regard to Stochastics. im looking for the Explorer Formula for Stochastics that will give me a buy signal/filter (green arrow up) under parameters 10, 3, 3 instead of the usual 15, 3, 5. 

my apologies again sirs. i know this is simple for the people here. but i cant do it. as far as i know, there are only 10 people of us using Metastock in our country. 

thanks.

dax

 

Users browsing this topic
Guest (Hidden)
Similar Topics
URGENT Formula Assistance (Formula Assistance)
by jameswong 12/31/2015 7:38:43 AM(UTC)
Urgent:Formula Assistance (Formula Assistance)
by bellapup 11/18/2015 5:05:24 PM(UTC)
Need formula assistance for Expert advisor involving moving averages (Formula Assistance)
by jshee921 3/19/2010 1:43:36 AM(UTC)
Explorer formula assistance (Formula Assistance)
by Mickyboy 3/9/2010 3:13:39 AM(UTC)
Need Exploration Formula assistance!! (Formula Assistance)
by aaaaaaicq 11/21/2009 10:55:07 AM(UTC)
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.