CanOz
Home runs feel good, but base hits pay bills!
- Joined
- 11 July 2006
- Posts
- 11,543
- Reactions
- 519
Thanks CanOz - I recently watched this and it was extremely useful in creating a basic system, just wasn't sure how that code would be used in the actual Bollinger indicator. When I ran a back test and went through to a chart of a stock that matched the screening, it would still have the default bollinger band settings so I couldn't see exactly where it touched the upper band if it was 3 std dev etc.
Thanks Gringotts, where exactly do I place the above? Do I just put it in anywhere among the current code, so,
a = BBandTop(C,100,3);
b = BBandBot(C,100,3);
Plot(a,"top",colorBlack);
Plot(b,"bott",colorBlack);
?
Ok, but can you change the plot of the bands to be the same as the signal? Or this is the part you're not actually sure of how to code?
Just use the above on its own for now. Keep it simple. Drag and drop it on a price chart to see the bands with 3 std devs.
Now add your buy/sell conditions.
eg. Buy = cross(C,a)...etc.
Thanks Gringotts, I will give it a try by modifying the original Bollinger Band indicator code to the above, although I am trying to make the bottom band 1 std deviation so would it be the below instead of another C,100,3 for B?
a = BBandTop(C,100,3);
b = BBandBot(C,100,1);
Plot(a,"top",colorBlack);
Plot(b,"bott",colorBlack);
Thanks everyone - most appreciated!
Is it possible to add the 100 day MA line into the below or do I need to run two indicators at once and change the MA duration from 15 to 100 days?
a = BBandTop(C,100,3);
b = BBandBot(C,100,1);
Plot(a,"top",colorBlack);
Plot(b,"bott",colorBlack);
The midline?
Just add in:
Plot(MA(C,100),"",colorblack);
Hi,
I want help in this code. I got it from one member. he sent this question i also tried it .
Code:for(i=1; i<=5; i++) { TimeframeSet(i * in1Minute); up15= C > O; TimeframeRestore(); } for(i=10; i<=15; i++) { TimeframeSet(i * (2*in5Minute)); up1015= C > O; TimeframeRestore(); } expandmode = expandPoint; up15= TimeFrameExpand(up15, in1minute, expandmode); up1015 = TimeFrameExpand(up1015, (10*in1Minute), expandmode); Plot( C, "Price", colorYellow, styleCandle ); PlotShapes( IIF( up15 AND up1015, shapeUpArrow , shapeNone ), colorAqua );
QUESTION:
if there is bar PATTERN BETWEEN 1min. to 5min.
if there is bar PATTERN BETWEEN 10min. to 15min.
if BOTH CONDITION IS RIGHT..
putting arrow on 1 min. timeframe.
PROBLEM:
which expandmode function should be used ?
1. Is this code right?
2. In this problem , arrow isn't stable, IT'S MOVING with price.
Kindly give your opinion..
regards
Hi, In gif pic( below link) ,you can see Arrow is not aligned with price (candlestick)? as i mentioned in 2, Kindly help.
http://imgur.com/gJ1tP69
regards
Hi. Does any one have a scan or know how to scan for a higher high?
Round lot is 1
Margin is 2500 minimum
Tick size.5
Point value 25 eur
Hi all.
I have a really basic question which I'm sure you all know of top of your heads.
What is the function that I use to scan for an event withing past 20 periods.
Example: moving average crossover within past 20 days. (I do not want to use the scan function date range for this)
Thanks
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?