NexusFi: Find Your Edge


Home Menu

 





code replacement with PL posible?


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #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?
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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


© 2026 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 - Downloads - Top
no new posts