strategie buy and sell

Posted By ivaniscovich Thursday, February 07, 2013
Add to Favorites1
Author Message
ivaniscovich
 Posted Thursday, February 07, 2013
Supreme Being

Supreme Being - (606 reputation)Supreme Being - (606 reputation)Supreme Being - (606 reputation)Supreme Being - (606 reputation)Supreme Being - (606 reputation)Supreme Being - (606 reputation)Supreme Being - (606 reputation)Supreme Being - (606 reputation)Supreme Being - (606 reputation)

Group: Forum Members
Last Active: Tuesday, February 19, 2013
Posts: 3, Visits: 29
606
bonjour a tous j essaie de faire une strategie

exemple

le script serait d 'avoir 1 position d' achat avec un stop et limite et ensuite si le trade est gagnant refaire 1 position d'achat .
Dans le cas contraire si le trade est perdant faire 1 position de vente et ainsi de suite.
Dans tous les cas si le trade est gagnant continuer dans le meme sens sinon inverser la tendance


exemple

achat gagnant
achat gagnant
achat gagnant
achat perdant
vente perdant
achat perdant
vente gagnant
vente gagnant
black
 Posted Thursday, February 07, 2013
Supreme Being

Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)

Group: Forum Members
Last Active: Sunday, July 13, 2014
Posts: 520, Visits: 1,004
I have done this in the past. It never worked for me. That does not mean that it can not work.

The problem is that the new trade would need to be done in the OnNewRate. Doing trades in OnNewRate is tricky. You can easily wind up with many trades when you only wanted one trade.

I don't have time now, but I will try to develop this Strategy again, in a few days.

Send me an email, if you want, so that I remember to work on this.

Smile

--------------------

http://www.bing.com/translator/

Je l'ai fait dans le passé. Il n'a jamais travaillé pour moi. Cela ne signifie pas qu'il ne peut pas fonctionner.

Le problème est que le nouveau commerce devra être fait dans le OnNewRate. Il est délicat de faire des métiers en OnNewRate. Vous pouvez facilement liquider avec de nombreux commerces lorsque vous vouliez seulement un métier.

Je n'ai le temps maintenant, mais je vais essayer de développer cette stratégie encore, dans quelques jours.

Envoyez-moi un email, si vous le souhaitez, pour que je me souviens de travailler là-dessus.
black
 Posted Monday, February 11, 2013
Supreme Being

Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)Supreme Being - (90,805 reputation)

Group: Forum Members
Last Active: Sunday, July 13, 2014
Posts: 520, Visits: 1,004
Ok, here it is, attached, BuySell130211.acts.

I have tested it in the Tester, but NOT DEMO OR LIVE.

If you run it Live, watch it to make sure that it doesn't open multitudes of Trades, but it shouldn't.

In Demo mode, it only produces results in the log. You must do your calculations manually, including figuring in the spread. The spread must be calculated for every Lot.

In Demo, calculate all the profits and losses based on the rate of the last Trade placed in the opposite direction.

For example, if the trades are like this:

Buy Rate: 1.5000
Buy Rate: 1.5050
Buy Rate: 1.5100
Sell Rate: 1.5050

then you would calculate:

Sell Rate: 1.5050 minus Buy Rate: 1.5000 = 0.0050 minus the spread
Sell Rate: 1.5050 minus Buy Rate: 1.5050= 0.0000 minus the spread
Sell Rate: 1.5050 minus Buy Rate: 1.5100= -0.0050 minus the spread

for a profit/loss of 0.0000, minus the spread. The Limit was placed at 50, obviously.

Testing in the Tester will produce extremely inaccurate results. The closer your time period interval is to the Tick, the more accurate will be the results. For example, Testing the Minute will be far more accurate than the 1-Hour. But the Minute tests will take much longer and will involve downloading much more data from your broker.

You are welcome to adapt it any way you like. Please let us know if you find bugs, or if you have better logic that can make it produce better results. Thanks.

Smile
 BuySell130211.acts (58 views, 4.35 KB)
m500
 Posted Tuesday, June 11, 2013
Supreme Being

Supreme Being - (9,361 reputation)Supreme Being - (9,361 reputation)Supreme Being - (9,361 reputation)Supreme Being - (9,361 reputation)Supreme Being - (9,361 reputation)Supreme Being - (9,361 reputation)Supreme Being - (9,361 reputation)Supreme Being - (9,361 reputation)Supreme Being - (9,361 reputation)

Group: Forum Members
Last Active: Wednesday, July 17, 2013
Posts: 76, Visits: 230
black (2/11/2013)
Ok, here it is, attached, BuySell130211.acts.

I have tested it in the Tester, but NOT DEMO OR LIVE.

If you run it Live, watch it to make sure that it doesn't open multitudes of Trades, but it shouldn't.

In Demo mode, it only produces results in the log. You must do your calculations manually, including figuring in the spread. The spread must be calculated for every Lot.

In Demo, calculate all the profits and losses based on the rate of the last Trade placed in the opposite direction.

For example, if the trades are like this:

Buy Rate: 1.5000
Buy Rate: 1.5050
Buy Rate: 1.5100
Sell Rate: 1.5050

then you would calculate:

Sell Rate: 1.5050 minus Buy Rate: 1.5000 = 0.0050 minus the spread
Sell Rate: 1.5050 minus Buy Rate: 1.5050= 0.0000 minus the spread
Sell Rate: 1.5050 minus Buy Rate: 1.5100= -0.0050 minus the spread

for a profit/loss of 0.0000, minus the spread. The Limit was placed at 50, obviously.

Testing in the Tester will produce extremely inaccurate results. The closer your time period interval is to the Tick, the more accurate will be the results. For example, Testing the Minute will be far more accurate than the 1-Hour. But the Minute tests will take much longer and will involve downloading much more data from your broker.

You are welcome to adapt it any way you like. Please let us know if you find bugs, or if you have better logic that can make it produce better results. Thanks.

Smile


i will test this Strategi

wmw
 Posted Friday, October 09, 2015
Supreme Being

Supreme Being - (1,875 reputation)Supreme Being - (1,875 reputation)Supreme Being - (1,875 reputation)Supreme Being - (1,875 reputation)Supreme Being - (1,875 reputation)Supreme Being - (1,875 reputation)Supreme Being - (1,875 reputation)Supreme Being - (1,875 reputation)Supreme Being - (1,875 reputation)

Group: Forum Members
Last Active: Yesterday @ 10:54 AM
Posts: 16, Visits: 320
black (2/11/2013)
Ok, here it is, attached, BuySell130211.acts.

I have tested it in the Tester, but NOT DEMO OR LIVE.

If you run it Live, watch it to make sure that it doesn't open multitudes of Trades, but it shouldn't.

In Demo mode, it only produces results in the log. You must do your calculations manually, including figuring in the spread. The spread must be calculated for every Lot.

In Demo, calculate all the profits and losses based on the rate of the last Trade placed in the opposite direction.

For example, if the trades are like this:

Buy Rate: 1.5000
Buy Rate: 1.5050
Buy Rate: 1.5100
Sell Rate: 1.5050

then you would calculate:

Sell Rate: 1.5050 minus Buy Rate: 1.5000 = 0.0050 minus the spread
Sell Rate: 1.5050 minus Buy Rate: 1.5050= 0.0000 minus the spread
Sell Rate: 1.5050 minus Buy Rate: 1.5100= -0.0050 minus the spread

for a profit/loss of 0.0000, minus the spread. The Limit was placed at 50, obviously.

Testing in the Tester will produce extremely inaccurate results. The closer your time period interval is to the Tick, the more accurate will be the results. For example, Testing the Minute will be far more accurate than the 1-Hour. But the Minute tests will take much longer and will involve downloading much more data from your broker.

You are welcome to adapt it any way you like. Please let us know if you find bugs, or if you have better logic that can make it produce better results. Thanks.

Smile


In tests good
Strategy needs to develop

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top