MQL4 - automated forex trading   /  

Forum

Posting code snippets in this forum is almost impossible

Back to topics list  | 1 2 To post a new topic, please log in or register

avatar
104
7bit 2010.02.07 21:03 

Posting code snippets in this forum is almost impossible. Everytime I try to post code or answer a posting with code in the quotation it is pure luck when the formatting doesn't get messed up completely.

formatted text

3 spaces


now try to quote this without messing up the indentation.


Could the admins please fix this? This forum is centered around programming, why on earth doesn't it have comfortable functions to poste code? It isn't fun to discuss coding topics here because of this dysfunctional broken forum software, so i mostly post in other forums where they dont have these problems.

article

Evolution of Trading Systems

Championship 2006 changed much in the developers' views. Participants of the last-year Championship drew the conclusion that it was very important to review their trading strategies fundamentally, choose other analytical tools or systems of risk and money management.


avatar
104
7bit 2010.02.07 21:04 
7bit wrote >>

Posting code snippets in this forum is almost impossible. Everytime I try to post code or answer a posting with code in the quotation it is pure luck when the formatting doesn't get messed up completely.

formatted text

3 spaces


now try to quote this without messing up the indentation.


Could the admins please fix this? This forum is centered around programming, why on earth doesn't it have comfortable functions to poste code? It isn't fun to discuss coding topics here because of this dysfunctional broken forum software, so i mostly post in other forums where they dont have these problems.


already messed up when posting, it didn't even allow me posting something with indentations :-(


avatar
104
7bit 2010.02.07 21:14 
test
   123

avatar
104
7bit 2010.02.07 21:15 
7bit wrote >>

cant quote it

test1

foo


test

foo


.


avatar
336
meikel 2010.02.07 21:15 
1
 2
  3
   4


avatar
336
meikel 2010.02.07 21:17 
meikel wrote >>
1
 2
  3
   4

copy and paste the code...



avatar
104
7bit 2010.02.07 21:17 
meikel wrote >>

thats all i see. no code in the quotation anymore


avatar
104
7bit 2010.02.07 21:19 
meikel wrote >>

copy and paste the code...

1
 2
  3
   4
1
 2
  3
   4


manually copying works.


avatar
801
gordon 2010.02.08 04:52 
7bit wrote >>


manually copying works.

I think that's intentional, code is usually long, and replies with long quoted blocks become hard to read. Just copy paste the code, the formatting (incluidng the pink block) is retained.


avatar
Moderator
33780
Rosh 2010.02.08 09:26 

Use special button "Insert code", it should be better.



avatar
365
WHRoeder 2010.02.08 19:04 

Pasting code has never kept the formatting for me after pressing the Post button:

Normal text (variable width - spacing lost):

//++++ These are adjusted for 5 digit brokers.
double pips2points, // slippage 3 pips 3=points 30=points
pips2dbl; // Stoploss 15 pips 0.0015 0.00150
int Digits.pips; // DoubleToStr(dbl/pips2dbl, Digits.pips)
int init() {
if (Digits == 5 || Digits == 3) { // Adjust for five (5) digit brokers.
pips2dbl = Point*10; pips2points = 10; Digits.pips = 1;
} else { pips2dbl = Point; pips2points = 1; Digits.pips = 0;
}

Code (fixed width - spacing still lost):

//++++ These are adjusted for 5 digit brokers.
double pips2points, // slippage 3 pips 3=points 30=points
pips2dbl; // Stoploss 15 pips 0.0015 0.00150
int Digits.pips; // DoubleToStr(dbl/pips2dbl, Digits.pips)
int init() {
if (Digits == 5 || Digits == 3) { // Adjust for five (5) digit brokers.
pips2dbl = Point*10; pips2points = 10; Digits.pips = 1;
} else { pips2dbl = Point; pips2points = 1; Digits.pips = 0;
}

Using the SRC button (fixed width - spacing kept - key words highlighted):
//++++ These are adjusted for 5 digit brokers.
double  pips2points,    // slippage  3 pips    3=points    30=points
        pips2dbl;       // Stoploss 15 pips    0.0015      0.00150
int     Digits.pips;    // DoubleToStr(dbl/pips2dbl, Digits.pips)
int init() {
    if (Digits == 5 || Digits == 3) {   // Adjust for five (5) digit brokers.
                pips2dbl    = Point*10; pips2points = 10;   Digits.pips = 1;
    } else {    pips2dbl    = Point;    pips2points =  1;   Digits.pips = 0;
    }

Back to topics list   | 1 2  

To add comments, please log in or register