Mine works just fine. If the first statement is true for both, it will fire. If only one of the first is true, it will fall through. Once it falls through the first, one of the next 2 will have to be true for them to display. Old coding habit for speed, = always evaluates faster than <>. Same with coding your if statements, always code for the event most likely to be true the most often. Otherwise you have a jump in the code stack and you clear the prefetch que.
As for displaying a symbol based on what has fired, a "B" (as in "b"oth) could indicate both have fired. A "C" for candle works nice and a "F" for fractal also works. Or just pick something. I like different colored arrow. Straight up blue for both firing a buy, 45 degrees up yellow saying one has fired. Reverse for short/sell. Red straight down, sell on both. 45 degree yellow, only one fired. You can pick the left pointing arrow for one formula and the right pointing arrow for the other.
Not rocket science, just a little imagination and experimentation
Attached is a chart of the SP500 daily and weekly with arrows and exit signals. The vertical arrows, red/blue, indicate an entry and continuation of the trend. The yellow arrows indicate the trend buying/selling pressure is weakening. For exits, there are specific red exit signs.
There are also pop up alerts for everything which is just a duplication of the code and appropriate text advising what event has triggered.
Bottom line, take the time to learn the product AND what you see that will work for you.
D
EGO Sum Qua EGO Sum
Sempre Avanti
Everything Hitler Did Was Legal.
Everything The American Patriots Did Was Illegal.
--- On Fri, 1/29/10, Pete Lieber <plieber@xxxxxxxxxxxxxx> wrote:
From: Pete Lieber <plieber@xxxxxxxxxxxxxx> Subject: RE: [EquisMetaStock Group] Metastock Expert To: "EquisMetastock" <equismetastock@xxxxxxxxxxxxxxx> Date: Friday, January 29, 2010, 11:25 PM
You have two conditions - a Fractal and a Candle For these two conditions you'll have three symbols, Symbol A : Candle Fml =1 and Fractal Fml = 1 Symbol B: Candle Fml =1 and Fractal Fml <> 1 Symbol C: Fractal Fml = 1 and Candle Fml <>1 So you were close! To make it work you have to put in the "AND" statement saying the other condition is "not equal" ("<>") to 1
To: equismetastock@ yahoogroups. com From: distinque@xxxxxx com Date: Fri, 29 Jan 2010 14:18:36 -0800 Subject: Re: [EquisMetaStock Group] Metastock Expert
Not sure what you are asking to display.
If I understand what you are attempting I would create 3 alerts. One with both buy conditions. One for the candle and one for the fractal. In the Expert listing place the most restrictive one first, the candle and fractal. The next two would be in your order of preference. I would tie the fractal and candle formulas together with a "AND" condition.
I also do one other step in my experts & formulas, I wrap the in an IF statement that resolves to 1 if true and 0 if false. This way I can write the expert/explorer statement as "if (fml A = 1)
For this I would write the following:
The first Expert condition
Candle Fml = 1 AND Fractal Fml = 1 - Select the symbol/color and text for this alert
The second
Candle Fml = 1 - Select the symbol/color and text for this alert
The third
Fractal Fml = 1 - Select the symbol/color and text for this alert
Now you have 3 separate alerts which will fire in the order you desire.
Following is my Dark Cloud Cover alert. I am only interested in this during an uptrend:
DarkCloud() = 1 AND Ref(HIGH,-3) > Ref(HIGH,-4) AND Ref(HIGH,-2) > Ref(HIGH,-3) AND Ref(HIGH,-1) > Ref(HIGH,-2)
Following is my Evening Doji Star:
EveningDojiStar( )=1
I have a pile of these in a Candle Expert advisor. The most restrictive, requiring more price bars, are first.
D
EGO Sum Qua EGO Sum
Sempre Avanti
--- On Thu, 1/28/10, vinodkochappan <vinodkochappan@ yahoo.com> wrote:
From: vinodkochappan <vinodkochappan@ yahoo.com> Subject: [EquisMetaStock Group] Metastock Expert To: equismetastock@ yahoogroups. com Date: Thursday, January 28, 2010, 11:05 AM
Hi,
i have an metastock expert which has buy signal and fractal formula.my problem is that if one same candle meets the buy condition and fractal conditon it's showing only the buy ,not the fractal...is there any way to plot the both in d same candle.
Thanx n regds.....
Vinod
|
|