as mentioned in former posts, i am a coding beginner. It would be useful for me to create own methods, what are saved in an libary.
For instance i want to call this basic code
if( Open[InputValue] == Close[InputValue]
&& Open[InputValue] == High[InputValue]
&& Open[InputValue] >= Low[InputValue] + 5 * TickSize
)
{
ItsADoji = true;
}
else
{
ItsADoji = false;
}
Everything i have coded till now was inside the protected override void method, what you get if you unlock an strategy.
I want to make my code more readable and create often used pieces of code in some kind of public libarys, so i have
access to often used code pieces. (The same way i use the predefinded Open[] method for instance,)
It would be great if you can show me the steps how to create a own method with the attached code for having an general template.
Thanks!


Comment