v2
✅New Update: New Feature and Fixed Bug
🔵Fixed Bug
There was a bug in the mitigation process that sometimes caused an alarm not to be issued despite the proximal level being mitigated. This bug has been fixed.
🔵New Feature
Order Block Drawing Control:
From now on, you can manage the drawing Order Block. For example, if you need the drawing of the Order Block to stop before the predicted natural states, you can enter that condition in the function so that the drawing of the Order Block will stop when it happens.
Mitigation Level Management:
From now on, you can choose yourself whether the trigger will happen at the "Proximal", "Distal" or "50 % OB" level. This feature helps you to have more customization in your strategy logic.
Show All Order Block:
In the previous version, you had no control over whether or not to display the last Order Block. Using this feature, you can choose to display only the last Order Block or display all Order Block.
OBDrawing(OBType, TriggerCondition, distalPrice, proximalPrice, Index, OBValidGlobal, OBValidDis, MitigationLvL, ShowAll, Show, ColorZone)
Parameters:
OBType (string)
TriggerCondition (bool)
distalPrice (float)
proximalPrice (float)
Index (int)
OBValidGlobal (bool)
OBValidDis (int)
MitigationLvL (string)
ShowAll (bool)
Show (bool)
ColorZone (color)
🔵New Parameters
OBValidGlobal (bool): This parameter is a boolean in which you can enter the condition that you want to execute to stop drawing the block order. If you do not have a special condition, you should set it to True.
MitigationLvL (string): This parameter is a string. Its inputs are one of "Proximal", "Distal" or "50 % OB" modes, which you can enter according to your needs. The "50 % OB" line is the middle line between distal and proximal.
ShowAll (bool): This is a boolean parameter, if it is "true" the entire order of blocks will be displayed, and if it is "false" only the last block order will be displayed.