Forex Factory (https://www.forexfactory.com/)
-   Rookie Talk (https://www.forexfactory.com/forum/56-rookie-talk)
-   -   Bet on the Direction (https://www.forexfactory.com/thread/224694-bet-on-the-direction)

lukeb Mar 8, 2010 12:47am | Post# 1

Bet on the Direction
 
1 Attachment(s)
The fxRoulette EA: (almost a pure martingale EA implementation)
Lots of discussion indicates the market trends - moves in a direction and keeps moving in that direction. The attached EA allows you to bet that if the market moves in a direction, it will continue in that direction. Features of the EA:
- Start a trading round by moving the bullet into the square. It doesn't go unless you tell it to.
- It implements a martingale strategy - Doubles after each loss until it wins or reaches risk limits.
- It implements a risk control algorithm that limits losses to a percent of equity and limits a position to a percent of available margin (see the Risk Calculation EA post)
- It has graphical strike, profit and loss lines that can be adjusted by the user to initiate and close trades.
- Has code examples for displaying objects and taking user input.

Enjoy the EA and the code examples. Please respect the spirit of sharing and post back use of code and modifications. Back test it - I was surprised how well it did.
Edit: About 300 downloads. I downloaded it today, and re-compiled with property strict. I wonder if it would be fun to update this to handle events, put in some kind of strategy to enter in a direction that seems favorable....
fxRoulette_2.mq4

uliesenfeld Mar 16, 2010 10:54am | Post# 2

proper set up
 
The fxRoulette EA: (almost a pure martingale EA implementation)
Lots of discussion indicates the market trends - moves in a direction and keeps moving in that direction....


I'm very interested to test your ea, but don't the right set up of the parameters to get it running on the M1 tf.

Your help is appreciated

regards

Udo

kingfisher Mar 18, 2010 4:52pm | Post# 3

Betting on a direction will make you bankrupt just like Brian Hunter (calgary based natural gas trader) went bankrupt after wrong calls on natural gas.

I have realised trading daily chart and closing the position by the end of the day is a way to go.

MarketPips Mar 18, 2010 8:19pm | Post# 4

I worked with Martingale in the past and came to conclusion that it gives slow profit increase but is able to burn any account at one time.

iamnoel Jun 24, 2010 7:43am | Post# 5

Martingale looks good on paper, but in live account, you need to have a deep, deep, deep, and real deep pocket, and a heart of stone or steel to watch the drawdown.

My 2 cents.

But I liked the name, fxroulette.

ramzam Oct 2, 2017 11:56pm | Post# 6

1 Attachment(s)
i want to test this EA in my demo account .. how to do this as i am new to this EA TRADING
Click to Enlarge

Name: Image1.png
Size: 24 KB

lukeb Nov 16, 2017 9:20pm | Post# 7

i want to test this EA in my demo account .. how to do this as i am new to this EA TRADING {image}
This EA was written before events - so you click and drag the 'stars' into the boxes (or vice versa) to perform the action.
This is quite old school, but - the strategy tester doesn't support events, so making it this way lets you use the controls in the strategy tester.
If you just start the game, without automatic restart, after one game round, the game ends and the marks 'deselect'. If you have automatic restart also selected, it is supposed to continue (never deselect).

ramzam Nov 17, 2017 9:04am | Post# 8

ok bro

GeorgeBaile Apr 25, 2018 6:33am | Post# 9

{quote} This EA was written before events - so you click and drag the 'stars' into the boxes (or vice versa) to perform the action. This is quite old school, but - the strategy tester doesn't support events, so making it this way lets you use the controls in the strategy tester. If you just start the game, without automatic restart, after one game round, the game ends and the marks 'deselect'. If you have automatic restart also selected, it is supposed to continue (never deselect).
May I know the trading pairs list of this trading EA? Really interested.

lukeb May 1, 2018 9:38am | Post# 10

{quote} May I know the trading pairs list of this trading EA? Really interested.
I believe there is no code specific to any pair - it should run on any chart it is placed on.

GeorgeBaile May 19, 2018 10:39am | Post# 11

{quote} I believe there is no code specific to any pair - it should run on any chart it is placed on.
Agree with your opinion, thank you for adding your words.


© Forex Factory