Home > Uncategorized > LiveWriter, Visual Studio and My Code

LiveWriter, Visual Studio and My Code

I’ve been using LiveWriter quite some time for now. It’s very easy and comfortable. Today I’ve found an interesting blogpost that explain how to paste code to LiveWriter so it can be displayed beautifully.

 

How to: Add a ‘Copy Code’ Link to Your Blog Post and Colored Code Blocks

 

This actually what I needed. My favorite IDE and Blog editor live happily ever after.

   public class HappyDayEA : EExpertAdvisor
    {
        private IOrderManager _orderManagement;
        private const double LotSize = 1;
        private Order _buyOrder = null;
        private Order _sellOrder = null;
        private DateTime prevtime = default(DateTime);

        private bool isInitialize = false;
        
        protected override int Init()
        {
            _orderManagement = new NoOrderCreatedManager(this);
            prevtime = Time[0];
            isInitialize = true;
            return (0);
        }

        internal void CreatedMagicBoxFromPreviousCandle()
        {
            _buyOrder = PendingBuy(Symbol, LotSize, High[1] 
            

 

Hope this helps !

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: