| 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 (1) | Thread Tools | Display Modes |
|
|||
|
Just to explain ...
Example : Pair GBP/USD Time H1 High=1.9820 Low=1.9859 Total Range = 39 pips. Open Price next H1 = 1.9843 For line 1a (magenta) 1.9843 - (39/5) = 1.9835 For line 1b (white) 1.9843 - (39/2) = 1.9824 For line 2a (magenta) 1.9843 + (39/5) = 1.9851 For line 2b (white) 1.9843 + (39/2) = 1.9863 And line can automatic change for the next H1. And this indicator can use for M30, H1 and H4. Regards, |
|
||||
|
I am still confused on how to code to capture the current profit of a particular currency in play, minus the swap, when 3 other currencies are also in play on the same platform? How do I set it up to handle magic numbers?
Another question: How do I also capture the total sum balance of profits or loss, minus swaps and minus the beginning starting balance of all the currencies in play including the closed out trades? Would anybody care to spend a few minutes to code these routines. Your efforts are sincerely appreciated!!!!!!!!!!!!!!! Thanks a bunch in advance! Dave <><<< |
|
|||
|
Help:newlines in a objectText
How can I make an object Text with more lines?
example: Data=StringConcatenate("Bid:",Bid," Ask:",Ask); ObjectCreate(object_name1, OBJ_TEXT, 0,x,y); ObjectSetText(object_name1,Data, fontsize,"Comic Sans MS", Black); I want a result like: Bid:1234 Ask:1236 and not: Bid:1234 Ask:1236 The "\n" doesn't function.. Thanks ![]() |
|
||||
|
if I were to do that I would just do this:
Print(" Bid: ",Bid); Print(" Ask: ",Ask); That will print the Bid and Ask prices and it will put them one under the other like you said you were looking for. Also, doing it this way, you don't have to declare any variables for it. I hope that is what you were looking for. ![]() |
|
|||
|
Quote:
![]() |
|
||||
|
exit s
can anyone direct me on how to program an indicator based exit.?
below is what I have so far. .but doesnt work . if( OrdersTotal() >= 1 ) { int total=OrdersTotal(); for(int cnt=0;cnt<=total;cnt++) // cnt loop { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if( OrderSymbol() == Symbol() && OrderMagicNumber() >= Magic_No_start && OrderMagicNumber() <= Magic_No_start + 100 && order_check != OrderTicket() ) // check for symbol { if(OrderType()==OP_BUY && OrderSymbol()==Symbol()) { if( ACLOSE == 1 && OrderProfit() > 1) { OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet) ; // close LONG position }} if(OrderType()==OP_SELL && OrderSymbol()==Symbol()) // check for symbol { if( ACLOSE == 2 && OrderProfit() > 1) { OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet) ; // close SHORT position }} |
![]() |
| Bookmarks |
| Tags |
| candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 07:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 05:22 PM |