# Thread: Technical analysis by ChartSecret

1. ## Technical analysis by ChartSecret

I am looking ways to optimised the martingle ea. However, to do this i need to analyse the 1M or daily price movement. means how many pips does one pair goes up and down on each direction. so we can set the next pips or accurate TP for the ea.

anyone knows how we can calculate this price movement.

thansk i hope my explanation clear enough.

2. Originally Posted by tilong77

I am looking ways to optimised the martingle ea. However, to do this i need to analyse the 1M or daily price movement. means how many pips does one pair goes up and down on each direction. so we can set the next pips or accurate TP for the ea.

anyone knows how we can calculate this price movement.

thansk i hope my explanation clear enough.
daily average calc with roomup + roomdown over 1day, 5days...240days

R1=0,R5=0,R10=0,R20=0,R40=0,R60=0,R80=0,R100=0,R12 0=0,R240=0,RAvg=0;
int RoomUp=0,RoomDown=0,StopLoss_Long=0,StopLoss_Short =0;
double SL_Long=0,SL_Short=0;
double low0=0,high0=0;
string Text="";
int i=0;

R1 = (iHigh(NULL,PERIOD_D1,1)-iLow(NULL,PERIOD_D1,1))/Point;
for(i=1;i<=5;i++)
R5 = R5 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=10;i++)
R10 = R10 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=20;i++)
R20 = R20 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=40;i++)
R40 = R40 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=60;i++)
R60 = R60 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=80;i++)
R80 = R80 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=100;i++)
R100 = R100 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=120;i++)
R120 = R120 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=240;i++)
R240 = R240 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;

R5 = R5/5;
R10 = R10/10;
R20 = R20/20;
R40 = R40/40;
R60 = R60/60;
R80 = R80/80;
R100 = R100/100;
R120 = R120/120;
R240 = R240/240;

RAvg = (R1+R5+R10+R20+R40+R60+R80+R100+R120+R240)/10;

low0 = iLow(NULL,PERIOD_D1,0);
high0 = iHigh(NULL,PERIOD_D1,0);
RoomUp = RAvg - (Bid - low0)/Point;
RoomDown = RAvg - (high0 - Bid)/Point;
StopLoss_Long = RoomUp/Risk_to_Reward_ratio;
SL_Long = Bid - StopLoss_Long*Point;
StopLoss_Short = RoomDown/Risk_to_Reward_ratio;
SL_Short = Bid + StopLoss_Short*Point;

3. Originally Posted by ixbone
daily average calc with roomup + roomdown over 1day, 5days...240days

R1=0,R5=0,R10=0,R20=0,R40=0,R60=0,R80=0,R100=0,R12 0=0,R240=0,RAvg=0;
int RoomUp=0,RoomDown=0,StopLoss_Long=0,StopLoss_Short =0;
double SL_Long=0,SL_Short=0;
double low0=0,high0=0;
string Text="";
int i=0;

R1 = (iHigh(NULL,PERIOD_D1,1)-iLow(NULL,PERIOD_D1,1))/Point;
for(i=1;i<=5;i++)
R5 = R5 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=10;i++)
R10 = R10 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=20;i++)
R20 = R20 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=40;i++)
R40 = R40 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=60;i++)
R60 = R60 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=80;i++)
R80 = R80 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=100;i++)
R100 = R100 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=120;i++)
R120 = R120 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;
for(i=1;i<=240;i++)
R240 = R240 + (iHigh(NULL,PERIOD_D1,i)-iLow(NULL,PERIOD_D1,i))/Point;

R5 = R5/5;
R10 = R10/10;
R20 = R20/20;
R40 = R40/40;
R60 = R60/60;
R80 = R80/80;
R100 = R100/100;
R120 = R120/120;
R240 = R240/240;

RAvg = (R1+R5+R10+R20+R40+R60+R80+R100+R120+R240)/10;

low0 = iLow(NULL,PERIOD_D1,0);
high0 = iHigh(NULL,PERIOD_D1,0);
RoomUp = RAvg - (Bid - low0)/Point;
RoomDown = RAvg - (high0 - Bid)/Point;
StopLoss_Long = RoomUp/Risk_to_Reward_ratio;
SL_Long = Bid - StopLoss_Long*Point;
StopLoss_Short = RoomDown/Risk_to_Reward_ratio;
SL_Short = Bid + StopLoss_Short*Point;
thanks for the input

After the breakout of the Wedge last night, price started going down to resume the last downtrend. After breakout of neckline of the Head & Shoulders price is expected to reach the 23.6% retracement of last downtrend.

Source:

5. Uncertainty.Limbo...
We need to wait ...

6. ## Flag Pattern | GBP\JPY

60-pips Flag pattern at the GBP\JPY. Price broke the resistance trendline and created a very precise pullback at the last trading hours of Friday.

In case of an opening gap upwards - enter long trade.

Source:
Analysis: Flag Pattern | GBP\JPY | ChartSecret.com

7. ## Trading Range at EUR\AUD - 130 pips

Trading Range pattern appeared at the EUR\AUD chart pattern - 130 pips in size. This is a strong pattern providing many trading oppurtunities.

Enter Long trade after breakout and pullback of price to Resistance (breakout up)
Enter Short trade after breakout and pullback of price to Support (breakout down)

Target
Size of pattern is 130 pips, this is the projected movement from the location of breakout.

Source
Analysis: Trading Range | EUR\AUD | ChartSecret.com

8. ## Channel Pattern - 130 pips | EUR\GBP

An Ascending Channel chart pattern is present at the EUR\GBP, at 4-hour charts. Pattern's size is 130 pips. Can be also interpreted as a flag - indicating a movement down and a continuation of the down-movement. Trading rules remains the same for Channel as for Flag.

SHORT Trade will be signaled after price breaks down the Support trendline and performs a pullback.

Target
Calculate 130 pips lower than the breakout price - this is the projected target.

Source
Analysis: Channel Pattern | EUR\GBP | ChartSecret.com

9. ## Reversal: Diamond Bottom | USD\CHF

USD\CHF: Diamond Bottom may cause reversal at the USD\CHF forex pair. The diamond is one of the most reliable chart patterns, able to create complete reversals after its breakout. Pattern's size is 70 pips, and this is its first target to reach after breakout.

Long trade will be entered after breakout of Resistance.
Conservative traders will wait for pullback to enter.

Source
Analysis: Diamond Bottom | USD\CHF | ChartSecret.com