Previous Day and low breakout trading

Hello,



Please help me out to create a stragery with previous day high breakout buy and previous day high breakout sell. For stop loss 10 moving average crossover exit. How to write a code in blueshift.



I dont have any knowledge about coding

Hi Clement



The following would be your conditions:



For Long:

  1. Get the previous day high
  2. If on the current day, the candle closes above the previous day high, go long
  3. If the candle closes below MA 10, you exit.
The reverse will be true for the short side. 

Since you do not have coding experience, I'd suggest starting with the basics. We have a free offering Python for Trading: Basic. It will help you get started on your journey to learning and coding in Python. It also has a dedicated section on Blueshift along with a sample strategy.

Once you are done with the basics, try coding the logic I shared above. If you get stuck then, we will be able to help you better, since you will have an understanding of how things are working.