| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Is this possible to code?
I've been at this 4 weeks and still no clue,
it's roughly this, if OP_BUY EUR/USD minus OP_SELL USD/CHF equals minus 100 ignore other trades and close both orders together I've tried everything loops within loops etc and nothing works I'm working on money management and am pulling my hair out any help or clue very welcomed. with thanks |
|
|||
|
Quote:
if (MathMax(EU_Profit,UC_Profit) + MathMin(EU_Profit,UC_Profit) < -100) { OrderClose(EU_Ticket... OrderClose(EC_Ticket... } Hmmm... seems too simple to spend 4 weeks on so you are probably trying to do something else..... |
|
|||
|
Logs of an Indicator
Trivial question: I'm writing a new Personal Indicator for the first time. I can't view my logs that I make with the command Print("...") in the start{} method. Where I can view them on MetaTrader 4?
Last edited by NTrader; 10-02-2007 at 07:59 PM. |
|
|||
|
Is this possible to code?
After looking at omelettes answer it's not what I need but certainly thankyou!
The problem: Using one symbol for simplicity lets choose EUR/USD If I have multiple BUY && SELL positions I need to choose only one BUY position and only one SELL position That together equal a variable of lets say of exactly -100 Every other order is untouched Which BUY or SELL is irrelevant The logic behind this is to keep BUY && SELL ratios correct for money management, a kind of stoploss that uses OrderClose() for both BUY && SELL any help warmly appreciated and thankyou |
|
|||
|
Thankyou
Thankyou ralph.ronnquist
these functions are exactly what I need and would be of use to others after a same function I was caught up otherwise would have thanked you earlier especially because it took effort Is there a simple way to change the function to work in strategy tester? I know the results of working with just one currency in the tester is next to useless except it mimics very roughly what I need in order to get the math right, any help is appreciated and I never would have worked the code out in short order so once again thankyou! |
|
|||
|
DT_ZZ.mq4-based EA
I'm having a little bit of trouble with this one.
I have the DT_ZZ.mq4 indicator and from what I see it's very promising. I do know that this indicator redraws and here's how I see it working. If an arrow and section are equal, then wait for the bar to close, then buy/sell accordingly. Anybody think they can help with that? (Code is posted below) Quote:
|
|
|||
|
can this be altered 4 strategy tester?
ralph.ronnquist
has provided me generously a great function that many may benefit from that require it's use. My problem is because I'm so lousy currently at programming I can't seem to alter it enough 4 strategy tester. For testing purposes only one currency is satisfactory just to work out the math of trades under different circumstances with different currencies. Is it possible to change ralph's work to suit this need. Thankyou |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 04:22 PM |