Hi MSN, is this code meant for Long trades (BUY) only? Is there a different rule for Short trades (SELL). What about Target and Stoploss ? I am asking because I am trying to refine the code.
-Anant
-Anant
Yes, I wrote the code for long. It works on all Time Frames. Short will be very easy to write, but problem is I am unable to control in real time.
Few things that came to my notice.
1. Chart's first bar high shows correctly in GFX print, but when you use explore it shows it incorrectly. I don't know why.
2. If you scroll the chart in 1 min time frame it forgets opening bar value and then it will start printing 0.
3. Now I can compare the candles but trades keep executing if the breakout has already happened. Tried EXREM function
Now replying to your questions.
SL is opening candle Low.
My personal opinion is to book partial profit at Fix 20 P for nifty
Rest must be left for 3:15 or until it hits opening candle low
Instead of 20 P I would also like to test this, We can also check the trend on same Time frame, if its making Higher High and Higher Low Pivots keep trailing with pivot low, we can ignore inside pivots.
For outside bars we consider them as part of the trend in the direction of the move. We must exit on outside bars also.
Inside bars we dont take any action, neither we move sl or trail
Yes same rule for Sell, break of 15 min candle low / or any chart time frame low should be sell ( it should be less then daily time frame)
Last edited: