Important!!!
  #11 (permalink)  
Old 08-09-2008, 07:40 PM
forexflash's Avatar
Senior
 
Join Date: Jun 2008
Posts: 204
Thanks: 20
Thanked 30 Times in 21 Posts
forexflash is on a distinguished road
Default Important!!!

In an EA like this you have to use a continuous loop in order to have the correct pricing at any given time. I loop my Start function like this.. Just make sure that all your functions dont close the loop or return the start().

int start()
{
while(
IsConnected()){
TickStart = GetTickCount(); //Count milliseconds for each loop for code optimization
CheckBid = Bid; // set Bid to correct value for calculations for upcoming cycle
MarketHours(); //Check to see what the market conditions are
if(OrdersTotal() > 0){ManageOrders();} // Look for open orders and manage them
Triggers();//Check to see if there are any new order opportunities
ChartComment();
Sleep(10);
}
return(
0);
}

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

Also when considering Bid, Ask spread in your calculations you have to validate the price each way for the currency pair that you want.

Example if you looking for signals on EURUSD according to the AUD. a buy signal would use ASK("EURUSD") < BID("AUDUSD") * ASK("EURAUD") But a sell signal would use BID("EURUSD") > ASK("AUDUSD") * BID("EURAUD"). Hope that helps you out...

I am allowing a new position every time I get a signal. I want to see exactly how many signals I receive so that I can determine the best way to eliminate the bad ones. I will pventually change this to a stepped up averaging rule, allow 3-6 positions in one direction at different levels - say 3 pips apart.

Exits are now based on 1) end of a trend 2) scalping rules, 1-3 pips TP 3) support and resistance levels... I abandoned the reverse signal theory a while ago. I dont know why all my positions arent closing at the same time. Do you know how to make this happen (close multiple orders at once).

Also I am using a stop loss now based on a 4 hour support and resistance level. usually 50 or so pips.

Im also finding it allot more important to "weight" certain validation currencies during different times of day.
Reply With Quote
Scalper Pic
  #12 (permalink)  
Old 08-09-2008, 07:44 PM
forexflash's Avatar
Senior
 
Join Date: Jun 2008
Posts: 204
Thanks: 20
Thanked 30 Times in 21 Posts
forexflash is on a distinguished road
Default Scalper Pic

159 Pips In Less Than 3 Hours
Attached Images
File Type: jpg Scalper Pic.jpg (100.4 KB, 63 views)
Sponsored Links EA Shark +1064% Return
Stock Market Crash? No Problem!
We Are Making Profits As Usual. More Info
Reply With Quote
  #13 (permalink)  
Old 08-10-2008, 03:01 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,992
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Sleep(10) is too fast. 10 is 10 milliseconds. It should be 10000 for 10 seconds.

Quote:
Originally Posted by forexflash
Example if you looking for signals on EURUSD according to the AUD. a buy signal would use ASK("EURUSD") < BID("AUDUSD") * ASK("EURAUD")
Somehow I think this is not right. Let's look at the buy signal. It should be ASK("EURUSD") < ASK("AUDUSD") * ASK("EURAUD"). I make the difference bold. Imagine in real arbitrage moment, to buy EUR and short sell USD, you will have to buy AUD (at ASK price) and short sell USD, and at the same time buy EUR (at ASK price) and short sell AUD. This is the only way to make the AUD of the two pairs cancel out in real-world trading.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #14 (permalink)  
Old 08-10-2008, 10:46 AM
forexflash's Avatar
Senior
 
Join Date: Jun 2008
Posts: 204
Thanks: 20
Thanked 30 Times in 21 Posts
forexflash is on a distinguished road
Default

BID("EURUSD") = BID("AUDUSD") * BID("EURAUD")
and
ASK("EURUSD") = ASK("AUDUSD") * ASK("EURAUD")

so when entering a long EURUSD position you want the
ASK("EURUSD") - 3 pip < ASK("AUDUSD") * ASK("EURAUD")

3 pips for:
1 pip to cover commission
1 pip to cover the spreads
. (so only at high volume times otherwise you will soon be toast)
and 1 pip for profit
Reply With Quote
  #15 (permalink)  
Old 08-10-2008, 12:25 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,992
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Yes, that's right.

I would add 2 pips for profit, since brokers often flag 1-pip scalpers as undesirable and might close our accounts.

Among the exit rules you mentioned (1. end of a trend 2. scalping rules, 1-3 pips TP 3. support and resistance levels), which one made most money in the last two days? I guess it's the end of a trend. How do you objectively calculate the end of a trend?
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #16 (permalink)  
Old 08-10-2008, 02:25 PM
forexflash's Avatar
Senior
 
Join Date: Jun 2008
Posts: 204
Thanks: 20
Thanked 30 Times in 21 Posts
forexflash is on a distinguished road
Default

I dont think that the 3 rules you mentioned is realy that important.
This is not scalping in its true form!
Take a look at the scalper pic...

as long as the given currency pair is out of consensus with other pairs
EA took trade(buy or sell) at the each m1 candle as long as the pair travel
far from its correlation with other pairs, and than at the moment the pair started correct itself,
buys or sells was hold on until pair returned to the normal correlation!
The rules we mentioned, could be the next step in developing the ea,
but for now lets keep this simple!!!

That is the way i see it...
Attached Images
File Type: jpg Scalper%20Pic.jpg (100.4 KB, 34 views)

Last edited by forexflash : 08-10-2008 at 02:38 PM.
Reply With Quote
  #17 (permalink)  
Old 08-10-2008, 02:49 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,992
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Don't you think entering a position on every candle is too risky? I think it should be limited to a number, so that a series of losses won't blow up the account. Another way is to run it in micro account and trade 0.1 and 0.01 lot. I wouldn't talk about losing trades but it will happen. In your screen shot, some trades were actually having some adverse pips before the final profits. How far do you hold the losing trades?
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #18 (permalink)  
Old 08-10-2008, 02:59 PM
forexflash's Avatar
Senior
 
Join Date: Jun 2008
Posts: 204
Thanks: 20
Thanked 30 Times in 21 Posts
forexflash is on a distinguished road
Default

One way to trade is to buy or sell (1 order)at the max consensus pair diference and than wait the pair to corect itself, and the other is to trade original rules with mini lots.
It is up to you, but for start lets keep this simple as possible..
And for the "lossing trades", dont worry, market always correct itself.

Last edited by forexflash : 08-10-2008 at 03:01 PM.
Reply With Quote
  #19 (permalink)  
Old 08-10-2008, 03:11 PM
forexflash's Avatar
Senior
 
Join Date: Jun 2008
Posts: 204
Thanks: 20
Thanked 30 Times in 21 Posts
forexflash is on a distinguished road
Default

Take a look at this indis, etc "cluster indicators"....
They will give you a big picture of market itself...
Attached Files
File Type: zip CLUSTER INDICATORS.zip (21.0 KB, 57 views)
Reply With Quote
The following users have thanked forexflash for useful post above:
  #20 (permalink)  
Old 08-10-2008, 03:34 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,992
Thanks: 125
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Thanks! I'll try the indis.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
The following users have thanked scorpion for useful post above:
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:31 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast