Download MetaTrader 5

metaeditor: auto-indent. How to auto-indent a whole code quickly?

To add comments, please log in or register
Does your signal already have a lot of of subscribers? It's time to think about the paid subscription!
samusmus1
205
samusmus1 2016.11.03 13:44 

How to auto-indent a whole code quickly?

 

For example, whenever I copy/paste code from a webpage or ebook it looks like:

 

 




if(SellTakeProfit > 0) SellTakeProfit = AdjustBelowStopLevel(Symbol(),

SellTakeProfit,5);

AddStopProfit(SellTicket,SellStopLoss,SellTakeProfit);

}

}

} // End trade block

// Adjust trailing stops

if(BuyMarketCount(Symbol(),MagicNumber) > 0 && TrailingStop > 0) //note: if extern TrailingStop = 0, then trailingstop is disabled

{

BuyTrailingStop(Symbol(),TrailingStop,Profit,MagicNumber);

}

if(SellMarketCount(Symbol(),MagicNumber) > 0 && TrailingStop > 0)

{

SellTrailingStop(Symbol(),TrailingStop,MinimumProfit,MagicNumber);

}

return(0);

Drazen Penic
2545
Drazen Penic 2016.11.03 13:50  

Try with "Ctrl+," or with "Styler" from the "Tools" menu.


samusmus1
205
samusmus1 2016.11.03 15:12  
Drazen Penic:

Try with "Ctrl+," or with "Styler" from the "Tools" menu.


thank you. It works.
samusmus1
205
samusmus1 2016.11.04 14:58  
Drazen Penic:

Try with "Ctrl+," or with "Styler" from the "Tools" menu.


what does 'to pocket' mean? (in mql5.com/en/forum page)? is it like a bookmark? and where can I see this bookmark?
Fernando Carreiro
2349
Fernando Carreiro 2016.11.04 15:26  
samusmus1:
what does 'to pocket' mean? (in mql5.com/en/forum page)? is it like a bookmark? and where can I see this bookmark?

"Pocket" is a special web application that allows to you "save for later" content for later reading on many support devices including eBook Readers, Mobile devices and also PCs.

Alain, has given the correct answer below!

Pocket
  • getpocket.com
When you find something you want to view later, put it in Pocket.
Alain Verleyen
Moderator
30752
Alain Verleyen 2016.11.04 18:57  

Forum on trading, automated trading systems and testing trading strategies

metaeditor: auto-indent. How to auto-indent a whole code quickly?

Fernando Carreiro, 2016.11.04 15:26

"Pocket" is a special web application that allows to you "save for later" content for later reading on many support devices including eBook Readers, Mobile devices and also PCs.

mql5.com "Pocket" feature is not related to getpocket.com, though the feature is similar.

Fernando Carreiro
2349
Fernando Carreiro 2016.11.04 19:26  
Alain Verleyen:

mql5.com "Pocket" feature is not related to getpocket.com, though the feature is similar.

Oops! I thought it was! I have corrected my post!

Then, how does one use it exactly! Is it explained somewhere? Never mind, I figured it out!

samusmus1
205
samusmus1 2016.11.04 20:03  
Fernando Carreiro:

Oops! I thought it was! I have corrected my post!

Then, how does one use it exactly! Is it explained somewhere? Never mind, I figured it out!

ok so what exactly is to pocket? what happens when I press the 'to pocket' button? I still don't understand it.
Alain Verleyen
Moderator
30752
Alain Verleyen 2016.11.04 20:53  

Forum on trading, automated trading systems and testing trading strategies

what is "to pocket"?

Alain Verleyen, 2013.03.31 16:27

To Pocket is not only available in forum. These links also exists for Market and Signals. If you click on the link, content is memorized and you can use it in your posts.

Forum toolbar


samusmus1
205
samusmus1 2016.11.04 23:59  
Alain Verleyen:

 

thank you. So to pocket has 2 functions:

- replying to a specific person in a thread

- copy message to clipboard

 

I understand the first function: replying to a commenter. But the second function I don't understand: copying to clipboard. I doesn't seem to work. How does it work?

Fernando Carreiro
2349
Fernando Carreiro 2016.11.05 00:10  
samusmus1: thank you. So to pocket has 2 functions:

- replying to a specific person in a thread

- copy message to clipboard

I understand the first function: replying to a commenter. But the second function I don't understand: copying to clipboard. I doesn't seem to work. How does it work?

Its not your PC Clipboard, but your site profile's clipboard which you paste using the "Pocket" icon which Alian showed you in his post (the one highlighted in yellow) and I quote:

12
To add comments, please log in or register