Share your Code, Here you have Bollinger Band indicator
Hello guys,
here you have Bollinger Bands indicator to include if you trade with this indi. It calculates Upper Band and Lower Band for a Period you choose when you call this function. It calculates starting from the most recent FINISHED candle to the candle you chose. So for example if you want to know what is the value of Upper Band with period 20, you must pass as parameter Period=20 .
Share your thoughts
Comments
If you can upload your blocks somewhere it can easily load using "Load Block From" block so that everyone can load your block and use it. Remember to save your blocks as a collection so that other users can add it to their own workspace.
GitHub gists are perfect for this purpose.
1. Go to GitHub gists
2. Drag and drop your block there
3. Click on "Create secret gist" or "Create public gist"
4. Click on "Raw" button near the filename
5. Copy the URL from your browser address bar
6. Now you can share the url or add it to a "Load Block From" like this:
and again save it and upload it to github gists and share the link.
Some benefits are:
1. If you changed the blocks multiple time gists will keep different versions of your file.
2. Everyone else can see and use your blocks to create their own
3. If you use the complete URL that gists gives you the file will always be the same even if you change the file and upload a new version the url will always show the first file you uploaded, if you want the URL to always give the latest version just remove the hash between "/raw/" and your filename:
https://gist.githubusercontent.com/aminmarashi/7cd7be9f3ce9004de767f4d4f6a6c5a0/raw/94a20dffcb7734e021dae83092eb02bd288843c1/body_percentage.xml
becomes:
https://gist.githubusercontent.com/aminmarashi/7cd7be9f3ce9004de767f4d4f6a6c5a0/raw/body_percentage.xml
This way if you realized that your block is faulty and fixed it the "Load Block From" block will get the fix in all other blocks that use it.
Great Job and Good Luck!
Can you help me make the indicator RSI, like all right, but I can not figure out how to set the variable RS, for the final calculation of the indicator
We're adding RSI support, please wait for it.
Hi Amin,
i've seen, that there is a Bollinger Band-Indicator block in the bot now. Is it functional, or if not, when can it be used? And could you give a little advise, how to use it? Thank you!
Hello, Anra! My exemplary strategy of using the indicator Bollinger Bands
Strategy used by tick chart. If the last tick goes to the upper band, it opens up the transaction, if the transaction is result loss and ends below the upper band, then the deal opens down ... strategy works with the trend. The same with the lower band. You can also change the strategy condition that after the breakdown of Bollinger bands were opened with
Still I would like to use the strategy of breaking through the middle line in the tick chart, but it is not clear how to do it. For example, 4 ticks were below the midline and 5 tick struck the middle line from the bottom up, after which the transaction would be opened for a raise. That is, the robot would be breaking the signal waiting and opened the transaction.
I tried to do it with candles, put conditions, if the opening of the candle below the middle line, as close above the center line, then open the deal to increase, but the deal could not be opened. Screenshots enclosing
Thanks, dear ekozhin!