Dear Funyoo

Can you help to create an EA to auto Buy like below? Thanks

1. Need to be able to setup lot size
2. Time Frame - any time frame
3. Buy on alert.

BUY ON : - can have an arrow to show it on screen?
// Check for Three Inside Up pattern

if ((O2>C2)&&(C1>O1)&&(C1<=O2)&&(C2<=O1)&&((C1-O1)<(O2-C2))&&(C>O)&&(C>C1)&&(O>O1)) {
if (Display_Three_Inside_Up == true) {
ObjectCreate(PatternText[shift], OBJ_TEXT, 0, Time[shift1], Low[shift1] - Range*1.5);
ObjectSetText(PatternText[shift], "Three Inside Up", 10, "Times New Roman", Aqua);
upArrow[shift1] = Low[shift1] - Range*0.5;
}
if (shift == 0 && Show_Alert == true) {
pattern="Three Inside Up Pattern";
setalert = 1;
++++++++++++++++++++++
ALarm Alert when:can have an arrow to show it on screen?
// Check for Bearish Engulfing pattern
if ((C1>O1)&&(O>C)&&(O>=C1)&&(O1>=C)&&((O-C)>(C1-O1))) {
if (Display_Bearish_Engulfing == true) {
ObjectCreate(PatternText[shift], OBJ_TEXT, 0, Time[shift1], High[shift1] + Range*1.5);
ObjectSetText(PatternText[shift], "Bearish Engulfing", 9, "Times New Roman", Red);
downArrow[shift1] = High[shift1] + Range*0.5;
}
if (setalert == 0 && Show_Alert == true) {
pattern = "Bearish Engulfing Pattern";
setalert = 1;
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++ ++++
for (shift = 0; shift < Bars; shift++) {

setalert = 0;
counter=shift;
Range=0;
AvgRange=0;
for (counter=shift ;counter<=shift+9;counter++) {
AvgRange=AvgRange+MathAbs(High[counter]-Low[counter]);
}
Range=AvgRange/10;
shift1 = shift + 1;
shift2 = shift + 2;
shift3 = shift + 3;

O = Open[shift1];
O1 = Open[shift2];
O2 = Open[shift3];
H = High[shift1];
H1 = High[shift2];
H2 = High[shift3];
L = Low[shift1];
L1 = Low[shift2];
L2 = Low[shift3];
C = Close[shift1];
C1 = Close[shift2];
C2 = Close[shift3];