Brainwashing: system development - page 2

 

Look on the image above: the price is going to the Up Channel line and the order should be closed now.

Irrespective of.

So, the order may be closed on:

- S/L which is moving by T/S;

- in profit by T/P;

- by support or resistance lines of an other indicator (see attached).

Files:
 

ok i change version

and

i make CalcBackBars only 1 ?

 

Yes, only 1.

And I found the bug. See the images. The signal was changed from sell to buy already but the EA did not closed sell and did not open buy.

The order should be closed if the signals were changed suddenly.

Files:
brainbug.gif  10 kb
brainbug1.gif  44 kb
 

sorry but i have understand problem

When the price is approached to the high or low lines

Close Buy Order

if cross CLOSE the low lines ?

Close Sell Order

if cross CLOSE the High lines ?

can you explain with Image ?

Thanks

 

I am talking about exit in profit only. Your S/L is moving in right way.

I want to add an other condition to close. See the images.

When the price was riched the resistance line (high line) the buy (if it was buy order) should be closed.

If sell order and the price is riched the low (support line) - close. In both cases it will be in profit.

But the price is not cross the high and low lines because those lines are the dynamic ones. The high/low lines are moving as well together with the price. So, the price is toching the high/low, or coming more closer let's say.

See images.

But improve the version 1 (Bruno tested version 2 and it was not good but version #1 is ok).

Files:
brain11.gif  11 kb
brain12.gif  22 kb
 

Close Buy Order

if the price is approaching the high line.

Close Sell Order

if the Low line.

The price will never cross the high or low. Just approaching. Be near or equal let's say.

And I found the bug. See image. The signal was changed from sell to buy but the EA did not close the sell order and did not open the buy.

An other condition to close the order: the signal was changed (on the 1 bar).

See the statement. The EA still kept the sell for jpy and the signal was changed already (see image).

Files:
brain13.gif  10 kb
brainst.htm  11 kb
 

Ok thanks

 

Ok have Finish the new Version

check Please Thanks

-PARAMETERS-

calcCloseDOTBars = 0 all Dots close Order

calcCloseDOTBars = 1 all 100% Dots close Order

useClose.Trade.Rules = True newdigital's Close rule

EA run only indicator

"Price Channel"

"PriceChannel_Stop_v1"

you please read all post by Brainwashing

have Fun and help me coding with Idea

Look download section

 
Alex.Piech.FinGeR:

-PARAMETERS-

calcCloseDOTBars = 0 all Dots close Order

calcCloseDOTBars = 1 all 100% Dots close Order

Alex please can you tell what is calcCloseDOTBars = 0 or 1?

Explain I really do not understand.

 

sorry my english is not good

calcCloseDOTBars =0 // calc every tick

calcCloseDOTBars = 1 // calc only complete BAR

and

CalBackBar = 1 // calc only complete BAR

CalBackBar = 0 // calc every tick

understand ?

calcCloseDOTBars rename idea ?

CalBackBar rename idea ?