♥ 0 |
What are the rules pertaining to MTF studies in regard to the Conditional Wizard Think or Swim Editor(CWTSE)? We know your study MTFMACD_v2 which you gave to us freely can not be referred to because in has a rec statement in it. Does it have to be frozen, referring only to last bar, tried that? Time frames all above? they are But my study, the following, while gets by the compiler, always fails to execute. Condition: ADLMTF10Frozen().longsignal==1 Action: Buy at Mkt , Alert Value Chart looks good.
Why is this?
#ADLMTF10Frozen
input length = 3; input TradeSize =1;
def LowestAggregation = GetAggregationPeriod(); def LowAggregation = AggregationPeriod.HOUR; def highAggregation = AggregationPeriod.FOUR_HOURS; def highestAggregation = AggregationPeriod.DAY;
declare lower;
def LowestUp = IsAscending (close(period = LowestAggregation), 1) or PriceOsc().PriceOsc > -0.7; def LowestDown = IsDescending (close(period = LowestAggregation),1) or PriceOsc().PriceOsc < 0.7;
def LowUp = IsAscending (close(period = LowAggregation)[1], length); def LowDown = IsDescending (close(period = LowAggregation)[1], length);
def HighUp = IsAscending (close(period = highAggregation), length)[1]; def HighDown = IsDescending (close(period = highAggregation), length)[1];
def HighestUp = IsAscending (close(period = highestAggregation), length)[1]; def HighestDown = IsDescending (close(period = highestAggregation), length)[1];
plot Longsignal = LowestUp && LowUp && HighUp & HighestUp; longsignal.SetPaintingStrategy(PaintingStrategy.ARROW_UP); longsignal.SetDefaultColor(Color.CYAN); longsignal.SetLineWeight(3);
plot ShortSignal = LowestDown && LowDown && HighDown & HighestDown ShortSignal.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN); ShortSignal.SetDefaultColor(Color.MAGENTA); ShortSignal.SetLineWeight(3); RESOLVED
Marked as spam
|
Please log in to post questions.
So what exactly where you trying to achieve here? Because if you only needed to get alerts and notifications from a list of ticker symbols, we can do that with a saved custom scan. And we can build multiple time frame based scans.
However if you were trying to get automated trade execution through a conditional order than we really are at a dead end.