- ago
What are the requirements for a WL8 C# custom indicator to be recognized in a Building Blocks Strategy? In other words for instance if I create a custom indicator that the signal plots an arrow on the chart will it be recognized if I place it as one of the conditions in a Building Blocks strategy? Thanks.
0
171
Solved
5 Replies

Reply

Bookmark

Sort
- ago
#1
Indicators return a series of double values, they're not plotting arrows.
0
Cone8
 ( 22.68% )
- ago
#2
Any custom indicator is automatically recognized for Building Blocks. However, plotting is only the secondary function of a "block", whose main purpose is to generate code for a trading signal or condition. Plotting arrows or anything other than the indicator itself would have to be done in your own custom code. There really isn't a general fit for that kind of plotting in blocks.
0
- ago
#3
QUOTE:
I create a custom indicator that the signal plots an arrow on the chart


Your description is ambiguous:
* If your indicator causes an (trade-)entry, the entry will be marked with an array automatically by WL.
* If you want to create an indicator which somehow should plot an arrow (independent of a trade) then you need the BuildingBlock API.

Using the BuildingBlock API you are able to
* create indicators
* create arbitrary Plot Statements which may use your indicator(s) or other BuildingBlock parameters to create some fancy graphic elements (like arrows)
0
Best Answer
Cone8
 ( 22.68% )
- ago
#4
QUOTE:
Using the BuildingBlock API you are able to
* create indicators

That's not accurate. You could hardcode indicators for use in blocks, but this is not recommended by any stretch of the imagination. If you want to create an indicator, use the built-in Indicator Builder (+New Indicator atop the Indicator panel) or the Indicator Library API here https://www.wealth-lab.com/Support/ExtensionApi/IndicatorLibrary.
0
- ago
#5
I meant:
Create an instance of an existing indicator...
0

Reply

Bookmark

Sort