I need a code to find highest high or lowest low before any entry signal and place it as stop loss
Your question is vague.
I need an AFL code to find out highest high or lowest low from the starting of the day untill i take long or short entry. i need this for Intra-day level. Conditions are as follows
- Day has started at 9:00 AM
- Buy or short entry signal appears at a time 'X'.
- Now i need highest high or lowest low from 9:00 AM till time 'X'.
I am a beginner and i don't have any Pre-written codes for this condition yet!.
Kindly provide me a code for the above condition
@jey you may find this article helpful: http://www.amibroker.com/kb/2015/02/02/high-low-of-certain-hours-of-the-day/
@mradtke thank you. I have already tried it. The issue is am not able to show the coding time of Buy or Short signal.
If you post your code, it would be much easier to suggest how to fix it. You probably need to use the
Its old strategy. High or low breakout
I mean that you need to show us the AFL that you're using. Post it here, properly formatted with code tags. Otherwise, everyone just has to guess what you're doing and where you might have made a mistake. The best way to get help is to make it as easy as possible for others to help you.
Ok. Sure. Will get back with properly formatted code tags in shortwhile