Download MetaTrader 5

Inserting a block of code

To add comments, please log in or register
Find out how social trading can improve your profits
Brian
498
Brian 2016.01.20 05:58 

Hi,

I am trying to figure out how to insert a block of code into a forum comment.

 

I know I'll kick myself when I hear the answer but appreciate any help:)

Tried SRC in the forum text editor. Perhaps just doing it wrong.


Thanks,

Brian 

Stuart Browne
5818
Stuart Browne 2016.01.20 06:08  
Brian:

Hi,

I am trying to figure out how to insert a block of code into a forum comment.

 

I know I'll kick myself when I hear the answer but appreciate any help:)

Tried SRC in the forum text editor. Perhaps just doing it wrong.


Thanks,

Brian 

Hi Brian - yeah it's the SRC button mate. What's happening when you click that?

You should get a box pop up that you write your code in :)

 If it's still not working, a work-around is to click the HTML button and drop this in

<pre class="code">You should get a box pop up that you write your code in :)</pre>
Brian
498
Brian 2016.01.20 06:32  

 Thanks Stuart,

 

Let's try that now below.

ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-TakeProfit*Point,"macd sample",16384,0,Red);
         if(ticket>0)
           {
            if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES))
               Print("SELL order opened : ",OrderOpenPrice());
           }
         else
            Print("Error opening SELL order : ",GetLastError());

 Okay, great!! It works.

Never saw the insert button so the code just looked like regular text in the pop up box.

I have kicked myself as promised :)

 

Thanks again - Cheers.

Brian 

Stuart Browne
5818
Stuart Browne 2016.01.20 08:17  
Brian:

 Thanks Stuart,

 

Let's try that now below.

 Okay, great!! It works.

Never saw the insert button so the code just looked like regular text in the pop up box.

I have kicked myself as promised :)

 

Thanks again - Cheers.

Brian 

HAHAHA, no worries mate, hope you didn't hurt yourself :)
To add comments, please log in or register