You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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,
weird
Man, i must be really tired..
Take a look at this picture.. FXDD !!!!
Maybe your entry and current prices are switched?
Profit coding for display
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!!!!!!!!!!!!!!!
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.
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.Yes, but I want an object text on the chart...
Help with coding
Gentlemen
What code line would help me to close all pending orders if the last order closed in profit?
Actually how can I identify the last winning trade?
Regards
Thanks in advance
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
}}