Greetings forumchan, can anyone help in the continuation of the code?input for 1 candle using martin (attached a screen for clarity), I have a code for 2 knees of Martin, I need 5, I would not like to apply to freelance for one such question… I will be very grateful for your help
if ((TimeCurrent()-10800)>=et[j-1] && p!=j-1){ePrice[j-1]=Ask; p=j-1;} sigS=0; sigB=0; Nsize=Size; if ((TimeCurrent()-10800)>et[j-1]){ if (use_martin && last[j-1]==1 && ePrice[j-1]0 && sPrice[j-1]>0) {sigB=1; Nsize=Size*coef1;} if (use_martin && last[j-1]==2 && ePrice[j-1]>sPrice[j-1] && ePrice[j-1]>0 && sPrice[j-1]>0) {sigS=1; Nsize=Size*coef1;} if (use_martin && (last[j-2]==1 || last[j-2]==0) && last[j-1]==3 && ePrice[j-1]0 && sPrice[j-1]>0) {sigB=1; Nsize=Size*coef1*coef2;} if (use_martin && (last[j-2]==2 || last[j-2]==0) && last[j-1]==4 && ePrice[j-1]>sPrice[j-1] && ePrice[j-1]>0 && sPrice[j-1]>0) {sigS=1; Nsize=Size*coef1*coef2;}
andreifan
The function for any of the knees should be universal.
It is necessary to formulate a general principle of entry for the next knee.