help me code strategies only Boilinger band and stochastic
-
help me code this strategies, I don't know where 1/3 candlestick close above or below boilinger band!
__Apply: Apply the main pair
Time: Frametime: H1 and H4
Installation:- Only used Boilinger Band 20 2 and Stochatic 8 3 3
- And use indicator show time, swap, spead…
Entry:
Buy : If 1/3 candle close obove boilinger band line and stochastic stay within 80-20
Sell: If 1/3 candlestick close below boilinger band line and stochastic stay within 80-20
Set SL below boilinger band about 5 pips if buy or set 5 pip above boilinger band if sell
Set TP = SL (R:R 1:1)
Exit: - When touching SL or TP
- When there is volatility
http://i60.tinypic.com/2dt4c5.jpg
[/quote:39ne8q1m]
attach file: indicator CandleCountdown and spead swap
-
What means 1/3 of the candle for you? Here are some basic candle parameters that you can get directly: http://docs.mql4.com/constants/indicato ... nts/prices
If it's something that does not fhese, then I can suggest to use this "Formula" block to calculate this 1/3 point. For this better read it's description to know how to use the Adjuct fields where/if needed. And if you are not sure about the output value you can check it with "Indicator tester" block.
Then everything else is conditions - use Condition block.If "stay within" means something more that 1 candle for you, I can suggest this block "Indicator moves within limits" because it can check if some indicator was in between two values (upper and lower) for few candles in the past. If it's for 1 candle only... maybe this block again or with two Condition blocks.
To set SL/TP at some custom level, in Buy now/Sell now select this option "Custom (price level)". In other blocks it can be called "Dynamic....". It's the same thing, I just have to rename this everything to "Custom...."
-
candle-close, imaging I devide whole candle-close 3 pieces, and if 1/3 of candle-close stuck out boilinger band and stochastic between 20-80 then we entry, that what I mean Bro. Thank bro
Let me try, but if you help me out by your code it better to understand -
There is a block named "Condition" where you compare one value with another, this is basic. There are few other blocks that do this, but a little bit more complex, like those in "Indicators" category, but the idea is the same - if whatever is compared and the comparison is true - pass the block.
Whole candle... what is whole candle? For someone it can be the difference between Open and Close, for other it can be the difference between High and Low.