Experts: Safe Trend Scalp - page 6

 
animalhandler:

The default in total profit to close all martingale orders is 50...is that 50 pips? 50 pippettes or $50.00?

I am not a coder but it must be somewhere here:


***

Its Just a number that is in closeprofit formula.

closeprofit in $ = OrderLot * 50

 
animalhandler:

Please edit your post and

use the code button (Alt+S) when pasting code

 
Faeze Bakhshayesh:

Thank you for interesting in my ea

Hi good morning, I tried to test your fx safe scalper and I found that only open buy positions.
You may correct the code or suggest where the problem is.
Thanks.
Regards
Oize
 
Automated-Trading:

Safe Trend Scalp:

Author: Faeze Bakhshayesh

how do optimization this EA . trend object cannot optimize .

Anyone optimize this EA?

 
LONNV #: how do optimization this EA . trend object cannot optimize. Anyone optimize this EA?

I have already answered you in another thread of yours about that. You will have to use the line equation "y = mx + c" instead of the Trendline graphical object, which will also be much faster than using a graphical object.

 
Fernando Carreiro #:

I have already answered you in another thread of yours about that. You will have to use the line equation "y = mx + c" instead of the Trendline graphical object, which will also be much faster than using a graphical object.

did you tested this equation in real practice?

 
LONNV #: did you tested this equation in real practice?

Obviously yes! It is the most basic of equations to use in trading. It is the basis for calculating trend lines, exponential moving averages and much more.

 
Fernando Carreiro #:

Obviously yes! It is the most basic of equations to use in trading. It is the basis for calculating trend lines, exponential moving averages and much more.

how calculate in negative slope trendlime value.

example downtrend, 1st point is 105 (10thcandle)2nd point is 100(thcandle2nd candle),  as equaltion,  it is negative .

y = m*x + y

m= -(105-100)/ (9index-1index) = -5/8 = -0.6 

x = value of 1st index point = 9

y = 100


is it correct?

 
LONNV #: how calculate in negative slope trendlime value. example downtrend, 1st point is 105 (10thcandle)2nd point is 100(thcandle2nd candle),  as equaltion,  it is negative. y = m*x + y

m= -(105-100)/ (9index-1index) = -5/8 = -0.6 x = value of 1st index point = 9. y = 100. is it correct?

y = m * x + c

Let y = price
Let x = bar index

[price] = m * [index] + c

Given:

Price at Index 9 is 105 (10th bar)
Price at Index 1 is 100 (2nd bar)

Therefore:

m = Δy / Δx = (105 - 100) / ( 9 - 1 ) = 5 / 8 = 0.625

c = y - m * x = 105 - m * 9 = 100 - m * 1 = 99.375

Equation:

y = 0.625 * x + 99.375

[price] = 0.625 * [index] + 99.375

Example:

What is trend-line price at bar index 5?

[price @ 5] = 0.625 * 5 + 99.375 = 102.5

 
Fernando Carreiro #:

y = m*x + c

Let y = price
Let x = bar index

[price] = m * [index] + c

Given:

Price at Index 9 is 105 (10th bar)
Price at Index 1 is 100 (2nd bar)

Therefore:

m = Δy / Δx = (105 - 100) / ( 9 - 1 ) = 5 / 8 = 0.625

c = y - m * x = 105 - m * 9 = 100 - m * 1 = 99.375

Equation:

y = 0.625 * x + 99.375

[price] = 0.625 * [index] + 99.375

Example:

What is trend-line price at bar index 5?

[price @ 5] = 0.625 * 5 + 99.375 = 102.5

you open the light for me.thanks. Can use this style of calculation in both positive and negative slope? because trendline frequently change from positive to negative slope vise versa.

Reason: