I was trying to find info online and in forums but could not. Is there a way to create custom method similar to DrawArrow...() methods used in Ninja please? Is there example or guidelines Ninja can offer. I'm trying to simplify my program where I'm repeatedly calling DrawArrow/Diamond/Tri...() and such. Is it possible to create a custom method where I could put my if uo... then Draw...up() else Draw...Down() logic and call this method in OnBarUpdate(), e.g.
if <some cond> ...
{
PlotSignals(up, 1,2,3)... //This custom method should have all my DrawArrow/Diamond/Triangle...() logic inside
}
else if
{
PlotSignals(down, 3,2,1)....
}
....
Currently I repeatedly calling Draw...() methods in my ifs.
Thank you very much.
Art.
Comment