- Search Energy EXCH
-
Jwentro replied Jan 1, 2009Ok i managed to fix the trailing stop code to make the trailing stop only work for level 1 trading (.01 lots) I used if(OrderLots() < Lotslvl2){ in the coding. But I've run across another problem: SOMETIMES, and not every time, but sometimes the EA ...
Close Pending Orders When last order was profitable
-
Jwentro replied Jan 1, 2009I dunno what it is about that trailing stop code, but it stops out orders while they are still at a loss. the trailing stop should obviously only take place once the trade is breakeven or higher. Also i don't see anything in that code that would ...
Close Pending Orders When last order was profitable
-
Jwentro replied Dec 31, 2008h, i appreciate your support and your help. I have finished the coding elements and have added another level to the trading. Some of the coding isn't as "user-friendly" as i would like, but it's working. There are however 2 things I'm having a ...
Close Pending Orders When last order was profitable
-
Jwentro replied Dec 30, 2008im uploading this just to show how i implemented my EA into the "code reference file". it has some coding errors but i'm tired.... look at them later Happy new year to all.
Close Pending Orders When last order was profitable
-
Jwentro replied Dec 30, 2008h, I did develop a basic template from Sufx.core but other than the most basic elements of the coding i have edited the EA myself.... I'm going to keep looking at it. i didn't think it would be this difficult to have an EA automatically close orders ...
Close Pending Orders When last order was profitable
-
Jwentro replied Dec 30, 2008Hahaha, as a test this EA, it doesn't open up trades correctly. Weird, maybe another programmer can look into my coding? i don't see anything wrong? double Var1 = iHigh("EURUSD", PERIOD_M15, Current + 1); double Var2 = iLow("EURUSD", PERIOD_M15, ...
Programming Help
-
Jwentro replied Dec 30, 2008Well i couldn't get that to work properly. its weird because it works fine in the CODE REFERENCE file, but when that same code is implemented into my EA it only opens one trade at a time.... rendering the strategy useless. Anyone else have any other ...
Close Pending Orders When last order was profitable
-
Jwentro replied Dec 30, 2008NO, you need a stop loss. I understand your trailing stop is the stop loss, but at what point do you close a trade if it goes against you. Example: Trade opened at 1.4066 Price immedaitely starts to decrease due to 1.4070 being a major resistance ...
Programming Help
-
Jwentro replied Dec 30, 2008FXDawg, as I'm only learning to program, I've put together what I could, Unfortunately The EA makes multiple trades per bar, i thought i set it to EachTickMode = False; but that doesn't seem to solve the problem. One major flaw with your strategy is ...
Programming Help
-
Jwentro replied Dec 30, 2008I'll code this, but before i do, do you have any type of statement that shows this trade stratgy being profitable?
Programming Help
-
Jwentro replied Dec 29, 2008Hayseed, I appreciate your help/input for my coding problem. Unfortunately the addition of that coding limits my EA to one order. It has to open 2 additional pending Limit orders to operate properly. I'm at work, but i plan on looking at it later.
Close Pending Orders When last order was profitable
-
Jwentro replied Dec 29, 2008i understand every aspect of the coding above, but for some reason can't get it to work in my EA. It's compiled w/ a "Function definition unexpected" error. I'm going to keep trying.
Close Pending Orders When last order was profitable
-
Jwentro replied Dec 24, 2008Other than the past 3 minutes (which had a 30 pip drop). I love low volatility days like this.
EURUSD
-
Jwentro replied Dec 24, 2008This probably won't help at all since you're a more experience programmer than i am, but i'll show what i know about icustom: =iCustom(NULL, 0 ,custom indicator's name, parameters set, number of a indicator's line used, number of periods back from ...
Help needed with custom indicator
-
Jwentro replied Dec 23, 2008My alpari US demo shows no spike. Just thought i'd throw in my two cents.
Irregular spikes on nzd pairs in metatrader
-
Jwentro replied Dec 22, 2008i assume this isn't your $100,000 demo account, so i have a few questions regarding your live account: 1. your deposit amount and broker 2. which EA are you using (i assume .01 lots) 3. are you manually closing out at a specific loss amount 4. your ...
100% Win Math Grid Ea
-
Jwentro replied Dec 18, 2008Ok the EA finally got a buy signal (usually very slow during this time of day, not enough volatility) The EA didn't open up level 1 (completely my responsibility... the slippage is set to 1, so if it happens it happens). But it did open up levels 2 ...
Close Pending Orders When last order was profitable
-
Jwentro replied Dec 18, 2008Im only a beginner when it comes to this type of coding, but what you want is SLIPPAGE. example: Ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, StopLossLevel, TakeProfitLevel, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue); ...
How do EA's work with Reqoutes?
-
Jwentro replied Dec 18, 2008zen, i will definitely look into a give of 1 or 2 pips for trade execution. I've already factored in spreads into the calculations to give me lot sizes, so that is taken care of. As far as using magic numbers I now understand the coding you used ...
Close Pending Orders When last order was profitable
-
Jwentro replied Dec 18, 2008in an attempt to not be completely hopeless when it comes to programming, i thought about this on my way home from work, and what if we changed the magic numbers and times by adding lots sizes to the comments as well then we would have ...
Close Pending Orders When last order was profitable