NexusFi: Find Your Edge


Home Menu

 





code replacement with PL posible?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,249 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

code replacement with PL posible?

  #1 (permalink)
siscop
germany
 
Posts: 19 since Sep 2009
Thanks Given: 16
Thanks Received: 4

Hi,
Just a few simple questions.
1. Is there a way to tell MC to open at open and close at the same bar close? I don’t have smaller data for intrabarbacktesting.
2. Is there a way to sum code together that comes up every time? Something like:
 
Code
#xxxpla:
begin
         Print(“ this is good”);
         Print(“this is bad”);
         Buy this bar on close;
         var0=var0+1;
  End;
And everytime I use the key “xxxpla” the code from begin to end will replace that. something like define or replacement.
So I can write
 
Code
If condition0 then
            xxxpla;
xxxpla will be replaced from PL automaticaly. Is something like that possible?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
What broker to use for trading palladium futures
Commodities
ZombieSqueeze
Platforms and Indicators
Strategy stop orders partially filled
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
57 thanks
Just another trading journal: PA, Wyckoff & Trends
16 thanks
Trading with Intuition
15 thanks
Self sabotage reframed
15 thanks
GFIs1 1 DAX trade per day journal
8 thanks
  #3 (permalink)
siscop
germany
 
Posts: 19 since Sep 2009
Thanks Given: 16
Thanks Received: 4


OK even when nobody wants to reply.
To Point no 1
I had to enter in the code from the Bar before the entrybar:
 
Code
if indi=1 and marketposition=0 then
        buy next bar at market;
and at the exitbar:
 
Code
if marketposition <>0 then
        sell this bar on close;
Probably to easy for you guys when you dont want to answer.

I still have the problem with the code replacement

Reply With Quote




Last Updated on January 20, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts