use part of custom indicator code in ea
traderjes: I have tried, but failed to figure out what part of the indicator code i can
use for my purpose.
- The answer is none. Get the information from the indicator and use it.
- Normally, indicators have buffers, and you can just use iCustom to read them.
- This indicator doesn't have any buffers. I just creates objects.
DrawObjects(dtTradeDate, "BoxHL " + TimeToStr(dtTradeDate,TIME_DATE), … DrawObjects(dtTradeDate, "BoxBreakOut_High " + TimeToStr(dtTradeDate,TIME_DATE), … DrawObjects(dtTradeDate, "BoxBreakOut_Low " + TimeToStr(dtTradeDate,TIME_DATE), … DrawObjects(dtTradeDate, "BoxPeriod " + TimeToStr(dtTradeDate,TIME_DATE), …
Go through the object list, find the latest rectangles and extract the information you need.
Object Functions
William Roeder:
- The answer is none. Get the information from the indicator and use it.
- Normally, indicators have buffers, and you can just use iCustom to read them.
- This indicator doesn't have any buffers. I just creates objects. Go through the object list, find the latest rectangles and extract
the information you need.
Object Functions
Great, thanks William. Appreciate your help a lot. Didn't know about buffers either.. something more to look into;)
below is the code of the custom indicator
further bellow is a screenshotattached to visually see what im trying to do..