- Search Energy EXCH
- 1,159 Results (26 Threads, 1,133 Replies)
-
ecTrade replied Aug 24, 2009Okay, I did modify your code a little (to suit my own taste), and made sure I put in the Buy Stops and Sell Stops when testing it, and it seemed to work fine. So, you may want to try it.

Grid Trading
-
ecTrade replied Aug 24, 2009I figured out why this is a little flaky. Basically it does work. However, when managing the AUSUSD pair on the USDJPY chart, it was updating the profit value from the ticks on the USDJPY chart, not the AUDUSD chart, so it wasn't updating correctly ...
Grid Trading
-
ecTrade replied Aug 24, 2009Oh, I see what you did. I didn't put in any stop or limit orders when testing it. That's probably why I didn't incur any problems. But yes, you are correct, I think the code needs to be there.
Grid Trading
-
ecTrade replied Aug 24, 2009Okay, I'm not accustomed to viewing more than one chart for the same pair. Maybe this is what was slowing it down? I tried managing USDJPY (on one chart) and didn't seem to have any problem. Will have to take a look at your fix though. I also tried ...
Grid Trading
-
ecTrade replied Aug 24, 2009What other EA? Are you running two EA's on the same chart? It doesn't let you do that does it? Anyway, I'm going to take a look here pretty quick. I have to set it up on my other computer though, because that's where I have my demo account.
Grid Trading
-
ecTrade replied Aug 24, 2009Are you running the EA by itself? Or, have you incorporated it into your own EA? There's no reason why it should open any new pending orders unless you have something else telling it do so. If so, then it might be a timing issue. But no, I haven't ...
Grid Trading
-
ecTrade replied Aug 24, 2009I modified the code again, by the way. I created a comment line that displays the price you enter (at least for the first order) and the profit as it begins to approach it. That way you know how far away you are and, if the price begins to peak, and ...
Grid Trading
-
ecTrade replied Aug 23, 2009What I've done here, which is pretty much the same thing, is specify a limit on the number of open orders (although I don't suppose it's necessary) and create an alarm that begins to sound as soon as it approaches that limit. So, if all of a sudden ...
Grid Trading
-
ecTrade replied Aug 23, 2009Am not sure how to set up the delay, but you should be able to use this to get the order to repeat itself. Which will continue to do so until you set up the delay and define "Set_Delay," which is the value specified once "Time_Count" is reached. So ...
troublesome line of code
-
ecTrade replied Aug 23, 2009Did you figure this out on your own? Looks pretty good. It's nice and neat. Of course I don't claim to be an expert on such things ... not just yet.

troublesome line of code
-
ecTrade replied Aug 23, 2009That is, the lower case "m" was required in order for me to test it. Whether it's required for your particular broker or not, I don't know? Yep. There's always tomorrow. Good luck!
Grid Trading
-
ecTrade replied Aug 23, 2009Got it! There is nothing wrong with the code. I just forgot to add the lower case "m" at the end of each symbol, which is required for opening trades with my broker (for mini-accounts). It should work fine the way it is, hopefully. Here is the ...
Grid Trading
-
ecTrade replied Aug 23, 2009It still requires the use of the OrderProfit() function and I haven't yet figured that out. If I do, then it shouldn't matter either way. It's probably a pretty straight forward fix. I just need to figure out how to implement it.

Grid Trading
-
ecTrade replied Aug 23, 2009Well, I thought it would work. This is what I've come up with so far. It's not providing the order profit information when calling up the OrderProfit() function. This is all I think that's necessary in order to get it to work. According to the Help ...
Grid Trading
-
ecTrade replied Aug 22, 2009Still it's based upon the account equity (overall profit) and not the profit for each individual pair. So I don't think you can use it. Actually I just took a stab at it, and may be able to post something workable in about an hour. I'm just about ...
Grid Trading
-
ecTrade replied Aug 22, 2009I just realized it. You are asking for the profit for a specific pair instead of the overall account equity. Since I am currently trading only one pair it doesn't matter to me, but it will make a difference in terms of what you're asking. So you ...
Grid Trading
-
ecTrade replied Aug 22, 2009If you are making a profit and it looks like it's about ready to peak (before reversing), close out (i.e., most trades should already have closed on their own) and wait for the price to drop and start all over again. Or, if you are reasonably ...
Grid Trading
-
ecTrade replied Aug 22, 2009Here is the code for the multiple selections. When testing it in the demo it will only allow you to chose one pair, specific to the symbol that you select when testing it. However, you may be able to manage more than one pair when forward testing it ...
Grid Trading
-
ecTrade replied Aug 22, 2009The link is in post #23. Am not sure why it doesn't show up as an attachment? Or, does it? I see it only as a link, but figured that was because I was the one who posted it.
Grid Trading