♥ 0 |
Pete, Just watched your new video about creating scans for specific studies but I cant quite figure out how to set mine up. The code I have will plot some fibonacci levels based on the prior weeks range. What I’m trying to do is set up a scan against my watchlist that will add to a watchlist when the price touches one of the fibonacci levels. Ideally the scan would occur once price touches the level, whether it crosses or just touches it and bounces (like touches fibOne). Here is the code. Thanks! input fibOne = 11.3; input fibTwo = 50.0; input fibThree = 88.7; input timeFrame = AggregationPeriod.WEEK; plot periodHigh = high(period = timeFrame)[1]; periodHigh.SetDefaultColor(Color.GREEN); periodHigh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL); plot periodLow = low(period = timeFrame)[1]; periodLow.SetDefaultColor(Color.RED); periodLow.SetPaintingStrategy(PaintingStrategy.HORIZONTAL); plot fibLevelOne = periodLow + ((periodHigh – periodLow) * (fibOne * 0.01)); fibLevelOne.SetDefaultColor(Color.YELLOW); fibLevelOne.SetPaintingStrategy(PaintingStrategy.HORIZONTAL); plot fibLevelTwo = periodLow + ((periodHigh – periodLow) * (fibTwo * 0.01)); fibLevelTwo.SetDefaultColor(Color.RED); fibLevelTwo.SetPaintingStrategy(PaintingStrategy.HORIZONTAL); plot fibLevelThree = periodLow + ((periodHigh – periodLow) * (fibThree * 0.01)); fibLevelThree.SetDefaultColor(Color.YELLOW); fibLevelThree.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Marked as spam
|
Please log in to post questions.